Skip to content

Commit

Permalink
No errors on deprecated warnings
Browse files Browse the repository at this point in the history
Since some features are deprecated (and more possibly will be
eventually), keep errors on warnings (-Werror) but also add an exception
to just warn on deprecation (-Wno-error=deprecated) rather than fail.

This keeps deprecation warnings visible and also causes more serious
warnings (like uninitialized variables/pointers) to error.

This addresses issue DDMAL#110.
  • Loading branch information
JRegimbal authored and rettinghaus committed Jul 1, 2022
1 parent c3b01ff commit 96a6e61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ set( LIBMEI_H

if (CMAKE_COMPILER_IS_GNUCXX)
add_definitions( -Werror )
add_definitions( -Wno-error=deprecated )
endif (CMAKE_COMPILER_IS_GNUCXX)

INCLUDE_DIRECTORIES(
Expand Down

0 comments on commit 96a6e61

Please sign in to comment.