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.
This commit is contained in:
Edward Thomson
2021-11-11 17:04:24 -05:00
parent 8d2b31109d
commit 4a6ef5a4a6
2 changed files with 1 additions and 2 deletions

View File

@@ -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)

View File

@@ -41,8 +41,6 @@ set(LIBGIT2_INCLUDES
set(LIBGIT2_SYSTEM_INCLUDES "")
set(LIBGIT2_LIBS "")
enable_warnings(missing-declarations)
if(HAVE_FUTIMENS)
set(GIT_USE_FUTIMENS 1)
endif ()