diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2018-09-17 20:38:05 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2018-09-17 20:38:05 +0200 |
commit | f2c1153d4fa09a36be7c6b87e4f55325f6e5031e (patch) | |
tree | b1052d009d46943c76fbf4937793a1564db8e9bc | |
parent | bc34cb63ff5b2bc51bcdec7dfc41202dfc34e97f (diff) | |
download | libgit2-f2c1153d4fa09a36be7c6b87e4f55325f6e5031e.tar.gz |
cmake: enable -Wformat and -Wformat-securitycmn/format-security
We do not currently have any warnings in this regard, but it's good practice to
have them on in case we introduce something.
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a888c5a5f..8aaa61d1a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -230,6 +230,8 @@ ELSE () ENABLE_WARNINGS(shift-count-overflow) DISABLE_WARNINGS(unused-const-variable) DISABLE_WARNINGS(unused-function) + ENABLE_WARNINGS(format) + ENABLE_WARNINGS(format-security) IF (APPLE) # Apple deprecated OpenSSL DISABLE_WARNINGS(deprecated-declarations) |