Skip to content

Commit e61b92e

Browse files
committed
clang: disable documentation-deprecated-sync
Add the `-Wno-documentation-deprecated-sync` switch when compiling with clang, since our documentation adds `deprecated` markers, but we do not add the deprecation attribute in the code itself. (ie, the code is out of sync with the docs). In fact, we do not _want_ to mark these items as deprecated in the code, at least not yet, as we are not quite ready to bother our end-users with this since they're not going away.
1 parent 9f3441c commit e61b92e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,10 @@ ELSE ()
252252
ENABLE_WARNINGS(format-security)
253253
ENDIF()
254254

255+
IF("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
256+
DISABLE_WARNINGS(documentation-deprecated-sync)
257+
ENDIF()
258+
255259
IF (PROFILE)
256260
SET(CMAKE_C_FLAGS "-pg ${CMAKE_C_FLAGS}")
257261
SET(CMAKE_EXE_LINKER_FLAGS "-pg ${CMAKE_EXE_LINKER_FLAGS}")

0 commit comments

Comments
 (0)