Skip to content

Commit d8992bd

Browse files
pmatilaidmnks
authored andcommitted
Add -Wformat-security to our default build flags
Kinda shocking that this isn't included in -Wall
1 parent 95a66c6 commit d8992bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ configure_file(config.h.in config.h)
399399

400400
add_compile_definitions(HAVE_CONFIG_H)
401401

402-
add_compile_options(-Wall -Wpointer-arith -Wempty-body)
402+
add_compile_options(-Wall -Wpointer-arith -Wempty-body -Wformat-security)
403403
if (ENABLE_WERROR)
404404
add_compile_options(-Werror)
405405
endif()

0 commit comments

Comments
 (0)