Skip to content

Commit

Permalink
Add -Wformat-security to our default build flags
Browse files Browse the repository at this point in the history
Kinda shocking that this isn't included in -Wall
  • Loading branch information
pmatilai committed Nov 5, 2024
1 parent 35399a7 commit 6e69727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ configure_file(config.h.in config.h)

add_compile_definitions(HAVE_CONFIG_H)

add_compile_options(-Wall -Wpointer-arith -Wempty-body)
add_compile_options(-Wall -Wpointer-arith -Wempty-body -Wformat-security)
if (ENABLE_WERROR)
add_compile_options(-Werror)
endif()
Expand Down

0 comments on commit 6e69727

Please sign in to comment.