Skip to content

Commit

Permalink
CMakeLists.txt: remove -Wdeclaration-after-statement for C files now …
Browse files Browse the repository at this point in the history
…that we allow C99
  • Loading branch information
rouault committed Dec 15, 2019
1 parent a531870 commit e1da545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -186,7 +186,7 @@ option(WITH_GENERIC_NINT "generic rounding" OFF)

# Add compiler flags for warnings
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror=format-security -Wdeclaration-after-statement")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror=format-security")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror=format-security")
endif()

Expand Down

0 comments on commit e1da545

Please sign in to comment.