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 committed Jul 22, 2020
1 parent cf541f5 commit ec5d913
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 ec5d913

Please sign in to comment.