Commit 4a6ef5a4 by Edward Thomson

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.
parent 8d2b3110
......@@ -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)
......
......@@ -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 ()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment