From ec5d913b824adab3b79a6104ed94538258610492 Mon Sep 17 00:00:00 2001 From: Juliette Regimbal Date: Wed, 22 Jul 2020 12:42:31 -0400 Subject: [PATCH] No errors on deprecated warnings 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 #110. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3aaf92f4..34b80d48 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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(