diff options
author | Douglas Yung <douglas.yung@sony.com> | 2018-06-07 18:51:47 +0000 |
---|---|---|
committer | Douglas Yung <douglas.yung@sony.com> | 2018-06-07 18:51:47 +0000 |
commit | 11fdf14cf25851a162314743777f500ec579ec65 (patch) | |
tree | 299eb8c7b5b3adedbafafc2c370a34cf66254f11 /lib/sanitizer_common | |
parent | ac07c292940cb1534c7fe200699af7d922d07130 (diff) |
Silence a -Wconstant-logical-operand warning.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334214 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common')
-rw-r--r-- | lib/sanitizer_common/sanitizer_flags.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sanitizer_common/sanitizer_flags.inc b/lib/sanitizer_common/sanitizer_flags.inc index e607e5101..cfe8af893 100644 --- a/lib/sanitizer_common/sanitizer_flags.inc +++ b/lib/sanitizer_common/sanitizer_flags.inc @@ -56,7 +56,7 @@ COMMON_FLAG( "Mention name of executable when reporting error and " "append executable name to logs (as in \"log_path.exe_name.pid\").") COMMON_FLAG( - bool, log_to_syslog, SANITIZER_ANDROID || SANITIZER_MAC, + bool, log_to_syslog, (bool)SANITIZER_ANDROID || (bool)SANITIZER_MAC, "Write all sanitizer output to syslog in addition to other means of " "logging.") COMMON_FLAG( @@ -135,7 +135,7 @@ COMMON_FLAG(uptr, soft_rss_limit_mb, 0, " malloc/new.") COMMON_FLAG(bool, heap_profile, false, "Experimental heap profiler, asan-only") COMMON_FLAG(s32, allocator_release_to_os_interval_ms, - (SANITIZER_FUCHSIA || SANITIZER_WINDOWS) ? -1 : 5000, + ((bool)SANITIZER_FUCHSIA || (bool)SANITIZER_WINDOWS) ? -1 : 5000, "Only affects a 64-bit allocator. If set, tries to release unused " "memory to the OS, but not more often than this interval (in " "milliseconds). Negative values mean do not attempt to release " @@ -225,7 +225,7 @@ COMMON_FLAG(bool, decorate_proc_maps, false, "If set, decorate sanitizer " COMMON_FLAG(int, exitcode, 1, "Override the program exit status if the tool " "found an error") COMMON_FLAG( - bool, abort_on_error, SANITIZER_ANDROID || SANITIZER_MAC, + bool, abort_on_error, (bool)SANITIZER_ANDROID || (bool)SANITIZER_MAC, "If set, the tool calls abort() instead of _exit() after printing the " "error report.") COMMON_FLAG(bool, suppress_equal_pcs, true, |