Skip to content

Commit 09bafc6

Browse files
committed
Upgrade warning flags on non-MSVC compilers.
We go from -Wall to -Wall -Wextra -Wno-unused-parameter -Werror=format-security - Wdeclaration-after-statement -std=gnu89.
1 parent 6af8628 commit 09bafc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/CMakeModules/")
99
if(MSVC)
1010
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -W3")
1111
else()
12-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
12+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter -Werror=format-security -Wdeclaration-after-statement -std=gnu89")
1313
endif()
1414

1515
enable_testing()

0 commit comments

Comments
 (0)