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 authored and dmnks committed Nov 6, 2024
1 parent 95a66c6 commit d8992bd
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 d8992bd

Please sign in to comment.