diff options
author | Darren Tucker <dtucker@dtucker.net> | 2021-10-29 13:32:24 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2021-10-29 13:32:24 +1100 |
commit | 68e522ed8183587c9367fa3842c5b75f64f3d12b (patch) | |
tree | 9f6856fe87bfe69c24eeaa9783a25605e376d48b /configure.ac | |
parent | be28b23012aa3fa323be7ec84863cf238927c078 (diff) |
Use -Wbitwise-instead-of-logical if supported.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 2a3d35da..57fcc9bc 100644 --- a/configure.ac +++ b/configure.ac @@ -177,6 +177,7 @@ if test "$GCC" = "yes" || test "$GCC" = "egcs"; then OSSH_CHECK_CFLAG_COMPILE([-Wunused-result], [-Wno-unused-result]) OSSH_CHECK_CFLAG_COMPILE([-Wimplicit-fallthrough]) OSSH_CHECK_CFLAG_COMPILE([-Wmisleading-indentation]) + OSSH_CHECK_CFLAG_COMPILE([-Wbitwise-instead-of-logical]) OSSH_CHECK_CFLAG_COMPILE([-fno-strict-aliasing]) if test "x$use_toolchain_hardening" = "x1"; then OSSH_CHECK_CFLAG_COMPILE([-mretpoline]) # clang |