Skip to content

Commit

Permalink
fix: allow deprecated declarations to stay as warning instead of bein…
Browse files Browse the repository at this point in the history
…g promoted to errors by -Werror
  • Loading branch information
SuperFola committed Jul 8, 2024
1 parent d234737 commit 81a2edc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,13 @@ if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANG OR APPLE)
-Wshadow
# -Wconversion # FIXME
-Werror
-Wno-unknown-pragmas # We use pragmas to disable warnings we understand.
# Allow deprecation warnings to not be treated as errors
-Wno-error=deprecated-declarations
# We use pragmas to disable warnings we understand.
# So we need to disable the warning about pragmas.
-Wno-unknown-warning-option # Disable warnings about disabling warnings we have
# disabled.
-Wno-unknown-pragmas
# Disable warnings about disabling warnings we have disabled.
-Wno-unknown-warning-option
)

if (APPLE)
Expand Down

0 comments on commit 81a2edc

Please sign in to comment.