Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Chatelain <ben@octop.ad>2015-07-28 03:28:29 +0300
committerBen Chatelain <ben@octop.ad>2015-07-28 03:28:29 +0300
commit2da64edb809c7c2dc7d4f2c6667ff9e1490bd625 (patch)
treef0a940213af3182ca1c888285f6ed4bfebf078e6 /CMakeLists.txt
parentf90fbb8d22c77fbc4d207ef68a9fd445e68602db (diff)
Add -Wdocumentation flag if supported
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 20e3272f9..a15ce7dbd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -413,6 +413,7 @@ ELSE ()
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
ENDIF ()
+ ADD_C_FLAG_IF_SUPPORTED(-Wdocumentation)
ADD_C_FLAG_IF_SUPPORTED(-Wno-missing-field-initializers)
ADD_C_FLAG_IF_SUPPORTED(-Wstrict-aliasing=2)
ADD_C_FLAG_IF_SUPPORTED(-Wstrict-prototypes)