diff options
author | Carlos MartÃn Nieto <cmn@dwim.me> | 2018-09-17 20:38:05 +0200 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2018-10-26 14:58:52 +0200 |
commit | 2e7d53ac21b58875ea5b8722ed1c29bca1637ee9 (patch) | |
tree | 11770bcf0acd52f737e573e879d49000b36ea953 | |
parent | e91d6b5ef927b29585879763af46ec986ea756da (diff) | |
download | libgit2-2e7d53ac21b58875ea5b8722ed1c29bca1637ee9.tar.gz |
cmake: enable -Wformat and -Wformat-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.
(cherry picked from commit f2c1153d4fa09a36be7c6b87e4f55325f6e5031e)
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1beb4295d..106469377 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -225,6 +225,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) |