diff --git a/BUILD.gn b/BUILD.gn index b12450d71..cff6e0506 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -142,6 +142,7 @@ config("extra_warnings") { } if (is_clang) { cflags += [ + "-Wbad-function-cast", "-Wconditional-uninitialized", "-Wextra-semi-stmt", "-Wfloat-conversion", diff --git a/src/common/third_party/xxhash/xxhash.c b/src/common/third_party/xxhash/xxhash.c index cf138bcbb..ae9a55116 100644 --- a/src/common/third_party/xxhash/xxhash.c +++ b/src/common/third_party/xxhash/xxhash.c @@ -222,7 +222,7 @@ static int XXH_isLittleEndian(void) const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ return one.c[0]; } -# define XXH_CPU_LITTLE_ENDIAN XXH_isLittleEndian() +# define XXH_CPU_LITTLE_ENDIAN (XXH_isLittleEndian()) #endif