aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-12-09 16:58:14 -0500
committerJack Lloyd <[email protected]>2017-12-09 16:58:14 -0500
commit6284d7507130288fa8cc7ece096ecac56a81f8cd (patch)
treedf7787000b756328468df15306ae81a945c8da8c /src
parent73ffce8d75cc9388f085a80d8e8796fcbbf40c59 (diff)
Move -Wstrict-overflow to maintainer mode [ci skip]
It tends to have false positives, and is deprecated starting in GCC 8
Diffstat (limited to 'src')
-rw-r--r--src/build-data/cc/gcc.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/build-data/cc/gcc.txt b/src/build-data/cc/gcc.txt
index 94cdd9e25..64c52f076 100644
--- a/src/build-data/cc/gcc.txt
+++ b/src/build-data/cc/gcc.txt
@@ -5,9 +5,9 @@ binary_name g++
lang_flags "-std=c++11 -D_REENTRANT"
# This should only contain flags which are included in GCC 4.8
-warning_flags "-Wall -Wextra -Wpedantic -Wstrict-aliasing -Wstrict-overflow=5 -Wcast-align -Wmissing-declarations -Wpointer-arith -Wcast-qual -Wzero-as-null-pointer-constant -Wnon-virtual-dtor"
+warning_flags "-Wall -Wextra -Wpedantic -Wstrict-aliasing -Wcast-align -Wmissing-declarations -Wpointer-arith -Wcast-qual -Wzero-as-null-pointer-constant -Wnon-virtual-dtor"
-maintainer_warning_flags "-Wold-style-cast -Wsuggest-override -Wshadow -Werror -Wno-error=strict-overflow -Wno-error=deprecated-declarations"
+maintainer_warning_flags "-Wstrict-overflow=5 -Wold-style-cast -Wsuggest-override -Wshadow -Werror -Wno-error=strict-overflow -Wno-error=deprecated-declarations"
optimization_flags "-O3"
size_optimization_flags "-Os"