Skip to content

Commit f827420

Browse files
authored
Merge pull request libgit2#4810 from libgit2/cmn/format-security
cmake: enable -Wformat and -Wformat-security
2 parents e181a64 + f2c1153 commit f827420

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,8 @@ ELSE ()
230230
ENABLE_WARNINGS(shift-count-overflow)
231231
DISABLE_WARNINGS(unused-const-variable)
232232
DISABLE_WARNINGS(unused-function)
233+
ENABLE_WARNINGS(format)
234+
ENABLE_WARNINGS(format-security)
233235

234236
IF (APPLE) # Apple deprecated OpenSSL
235237
DISABLE_WARNINGS(deprecated-declarations)

0 commit comments

Comments
 (0)