diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-11 17:04:24 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-11 17:31:43 -0500 |
commit | 4a6ef5a4a6cabfaa7147aab28130da49e5b177ea (patch) | |
tree | 65c41c33f87098d7b4531a47303df0690315a4aa /cmake | |
parent | 8d2b31109d980462e1853bef3edf08ddecd094b2 (diff) | |
download | libgit2-4a6ef5a4a6cabfaa7147aab28130da49e5b177ea.tar.gz |
cmake: move missing-declarations warning to top-level
We should enforce declarations throughout the code-base, including
examples, fuzzers and tests, not just in the `src` tree.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/DefaultCFlags.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/DefaultCFlags.cmake b/cmake/DefaultCFlags.cmake index d122f6c25..fa59e1d97 100644 --- a/cmake/DefaultCFlags.cmake +++ b/cmake/DefaultCFlags.cmake @@ -125,6 +125,7 @@ else() enable_warnings(documentation) disable_warnings(documentation-deprecated-sync) disable_warnings(missing-field-initializers) + enable_warnings(missing-declarations) enable_warnings(strict-aliasing) enable_warnings(strict-prototypes) enable_warnings(declaration-after-statement) |