summaryrefslogtreecommitdiff
path: root/build_posix
diff options
context:
space:
mode:
authorKeith Bostic <keith.bostic@mongodb.com>2017-06-01 21:59:07 -0400
committerMichael Cahill <michael.cahill@mongodb.com>2017-06-02 11:59:07 +1000
commitb3ff7c4ab91d3c5fda64381d8ab5957cb697167d (patch)
tree2cd71bfbf374aa8a58f559f972586cad98a92928 /build_posix
parent1216c4286d1834c5219b651cfd9f4b82d14f45dd (diff)
downloadmongo-b3ff7c4ab91d3c5fda64381d8ab5957cb697167d.tar.gz
WT-3348 Lint, Windows warnings. (#3449)
* Simplify Windows include files, clean up Windows warnings. * Remove incorrect path from copyright skip list. * Clean up a set of places where an operation could potentially truncate a value by performing the operation at the larger size and then casting the result.
Diffstat (limited to 'build_posix')
-rw-r--r--build_posix/aclocal/strict.m47
1 files changed, 7 insertions, 0 deletions
diff --git a/build_posix/aclocal/strict.m4 b/build_posix/aclocal/strict.m4
index 659867fa69e..8c15a22d575 100644
--- a/build_posix/aclocal/strict.m4
+++ b/build_posix/aclocal/strict.m4
@@ -41,7 +41,14 @@ AC_DEFUN([AM_GCC_WARNINGS], [
w="$w -Wno-error=inline"
w="$w -Wno-error=unsafe-loop-optimizations"
+ # GCC 4.7
+ # WiredTiger uses anonymous structures/unions, a C11 extension,
+ # turn off those warnings.
+ # GCC 6.X
+ # Additional warning messages.
case "$1" in
+ [*4.7.[0-9]*]) # gcc4.7
+ w="$w -Wno-c11-extensions";;
[*6.[0-9].[0-9]*]) # gcc6.X
w="$w -Wduplicated-cond"
w="$w -Wmisleading-indentation";;