diff options
author | Ben Chatelain <ben@octop.ad> | 2015-07-27 18:28:29 -0600 |
---|---|---|
committer | Ben Chatelain <ben@octop.ad> | 2015-07-27 18:28:29 -0600 |
commit | 2da64edb809c7c2dc7d4f2c6667ff9e1490bd625 (patch) | |
tree | f0a940213af3182ca1c888285f6ed4bfebf078e6 | |
parent | f90fbb8d22c77fbc4d207ef68a9fd445e68602db (diff) | |
download | libgit2-2da64edb809c7c2dc7d4f2c6667ff9e1490bd625.tar.gz |
Add -Wdocumentation flag if supported
-rw-r--r-- | CMakeLists.txt | 1 |
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) |