@@ -72,7 +72,7 @@ set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE CACHE BOOL "Enable Link Time Optimiz
7272#
7373# Added Flags:
7474# -Werror: Treat all warnings as errors.
75- # -Wstrict-overflow=5 : Warn about cases where the compiler assumes that signed overflow does not occur.
75+ # -Wstrict-overflow=2 : Warn about cases where the compiler assumes that signed overflow does not occur.
7676# -Wmissing-prototypes: Warn if a global function is defined without a previous prototype declaration.
7777# -Wstrict-aliasing=2: Enforce strict aliasing rules.
7878# -Wundef: Warn if an undefined identifier is evaluated in an `#if` directive.
@@ -87,7 +87,7 @@ set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE CACHE BOOL "Enable Link Time Optimiz
8787# -D_FORTIFY_SOURCE=2: Enable additional compile-time and run-time checks for buffer overflows.
8888#=======================================================================
8989set (CMAKE_C_FLAGS_INIT "-Wall -Wextra -Wconversion -pedantic -Wshadow \
90- -Werror -Wstrict-overflow=5 -Wmissing-prototypes \
90+ -Werror -Wstrict-overflow=2 -Wmissing-prototypes \
9191-Wstrict-aliasing=2 -Wundef -Wredundant-decls \
9292-Wcast-align -Wformat=2 -Wfloat-equal \
9393-fno-common -march=native -flto -fstack-protector-strong \
@@ -136,7 +136,7 @@ set(CMAKE_C_FLAGS_RELEASEWITHO2_INIT "-O2 -DNDEBUG" CACHE STRING "C Compiler Fla
136136#
137137# Added Flags:
138138# -Werror: Treat all warnings as errors.
139- # -Wstrict-overflow=5 : Warn about cases where the compiler assumes that signed overflow does not occur.
139+ # -Wstrict-overflow=2 : Warn about cases where the compiler assumes that signed overflow does not occur.
140140# -Wstrict-aliasing=2: Enforce strict aliasing rules.
141141# -Wundef: Warn if an undefined identifier is evaluated in an `#if` directive.
142142# -Wredundant-decls: Warn about redundant declarations.
@@ -153,7 +153,7 @@ set(CMAKE_C_FLAGS_RELEASEWITHO2_INIT "-O2 -DNDEBUG" CACHE STRING "C Compiler Fla
153153#=======================================================================
154154set (CMAKE_CXX_FLAGS_INIT "-Wall -Wextra -Wnon-virtual-dtor -Wconversion -Wold-style-cast \
155155-pedantic -Wshadow -Wno-error=deprecated-declarations \
156- -Werror -Wstrict-overflow=5 \
156+ -Werror -Wstrict-overflow=2 \
157157-Wstrict-aliasing=2 -Wundef -Wredundant-decls \
158158-Wcast-align -Wformat=2 -Wfloat-equal \
159159-fno-exceptions -fno-rtti -fno-common -march=native -flto -fstack-protector-strong \
0 commit comments