summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/build_posix
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/build_posix')
-rw-r--r--src/third_party/wiredtiger/build_posix/aclocal/strict.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/build_posix/aclocal/strict.m4 b/src/third_party/wiredtiger/build_posix/aclocal/strict.m4
index c107dd017d7..659867fa69e 100644
--- a/src/third_party/wiredtiger/build_posix/aclocal/strict.m4
+++ b/src/third_party/wiredtiger/build_posix/aclocal/strict.m4
@@ -31,6 +31,7 @@ AC_DEFUN([AM_GCC_WARNINGS], [
w="$w -Wstrict-prototypes"
w="$w -Wswitch-enum"
w="$w -Wundef"
+ w="$w -Wuninitialized"
w="$w -Wunreachable-code"
w="$w -Wunsafe-loop-optimizations"
w="$w -Wunused"
@@ -66,6 +67,10 @@ AC_DEFUN([AM_CLANG_WARNINGS], [
# w="$w -Wno-error=cast-qual"
w="$w -Wno-cast-qual"
+ # On Centos 7.3.1611, system header files aren't compatible with
+ # -Wdisabled-macro-expansion.
+ w="$w -Wno-disabled-macro-expansion"
+
case "$1" in
*Apple*clang*version*4.1*)
# Apple clang has its own numbering system, and older OS X