aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@google.com>2022-10-27 19:15:48 -0400
committerBoringssl LUCI CQ <boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-10-27 23:27:37 +0000
commitfd4315d8ebeb2df198bf3b6920df5989931e40c1 (patch)
tree2c238e16c07c7dae352641250867e487dd950d92 /CMakeLists.txt
parent045129c80c68c7340801df8725b6a056d93ad08e (diff)
downloadboringssl-fd4315d8ebeb2df198bf3b6920df5989931e40c1.zip
boringssl-fd4315d8ebeb2df198bf3b6920df5989931e40c1.tar.gz
boringssl-fd4315d8ebeb2df198bf3b6920df5989931e40c1.tar.bz2
Remove tautological comparison.
Also build with -Wtype-limits to catch future instances. Bug: 529 Change-Id: I2d84dc1824ffc7cd92411f49c9f953bcd3c74331 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/55045 Reviewed-by: Adam Langley <agl@google.com> Commit-Queue: Adam Langley <agl@google.com> Commit-Queue: David Benjamin <davidben@google.com> Auto-Submit: David Benjamin <davidben@google.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 69169c4..780ed21 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -132,7 +132,7 @@ endif()
if(CMAKE_COMPILER_IS_GNUCXX OR CLANG)
# Note clang-cl is odd and sets both CLANG and MSVC. We base our configuration
# primarily on our normal Clang one.
- set(C_CXX_FLAGS "-Werror -Wformat=2 -Wsign-compare -Wmissing-field-initializers -Wwrite-strings -Wvla -Wshadow")
+ set(C_CXX_FLAGS "-Werror -Wformat=2 -Wsign-compare -Wmissing-field-initializers -Wwrite-strings -Wvla -Wshadow -Wtype-limits")
if(MSVC)
# clang-cl sets different default warnings than clang. It also treats -Wall
# as -Weverything, to match MSVC. Instead -W3 is the alias for -Wall.