diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2018-11-18 09:52:12 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2018-11-28 15:46:57 +0000 |
commit | 3a2e48366135decbe4f265c72f0ace612f349412 (patch) | |
tree | 8bfc44d9c1870ca02be162ffe472bb34d3bd8324 | |
parent | 45054732a4232a27953de212cd068619a0f8b723 (diff) | |
download | libgit2-3a2e48366135decbe4f265c72f0ace612f349412.tar.gz |
CMake: disable deprecated documentation sync
The `-Wdocumentation-deprecated-sync` option will warn when there is a
doxygen `\deprecated` tag but there is no corresponding deprecation
attribute on the function. We want to encourage users to not use
particular APIs by marking them deprecated in the documentation without
necessarily raising a compiler warning by marking an item as deprecated.
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index fa5456e6c..513dd7518 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -233,6 +233,7 @@ ELSE () ENABLE_WARNINGS(format) ENABLE_WARNINGS(format-security) ENABLE_WARNINGS(int-conversion) + DISABLE_WARNINGS(documentation-deprecated-sync) IF (APPLE) # Apple deprecated OpenSSL DISABLE_WARNINGS(deprecated-declarations) |