diff --git a/CMakeLists.txt b/CMakeLists.txt index c1267291b03..030fd699e45 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,7 +22,7 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR # Ensure NDEBUG is not set for release builds set(CMAKE_CXX_FLAGS_RELEASE "-O2") # Enable lots of warnings - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wpedantic -Werror -Wno-error=deprecated-declarations") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wpedantic -Werror -Wno-deprecated-declarations") elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") # This would be the place to enable warnings for Windows builds, although # config.inc doesn't seem to do that currently diff --git a/src/config.inc b/src/config.inc index 5290ee5a9cb..00d2bda6845 100644 --- a/src/config.inc +++ b/src/config.inc @@ -5,7 +5,7 @@ BUILD_ENV = AUTO ifeq ($(BUILD_ENV),MSVC) #CXXFLAGS += /Wall /WX else - CXXFLAGS += -Wall -pedantic -Werror -Wno-error=deprecated-declarations + CXXFLAGS += -Wall -pedantic -Werror -Wno-deprecated-declarations endif # Select optimisation or debug info diff --git a/src/util/arith_tools.h b/src/util/arith_tools.h index d5a6b745925..54f8ed60fb8 100644 --- a/src/util/arith_tools.h +++ b/src/util/arith_tools.h @@ -23,12 +23,12 @@ class typet; // this one will go away // returns 'true' on error /// \deprecated: use the constant_exprt version instead -//DEPRECATED("Use the constant_exprt version instead") +DEPRECATED("Use the constant_exprt version instead") bool to_integer(const exprt &expr, mp_integer &int_value); // returns 'true' on error /// \deprecated: use numeric_cast instead -//DEPRECATED("Use numeric_cast instead") +DEPRECATED("Use numeric_cast instead") bool to_integer(const constant_exprt &expr, mp_integer &int_value); // returns 'true' on error diff --git a/src/util/mp_arith.h b/src/util/mp_arith.h index aeff8ec290b..4093e480628 100644 --- a/src/util/mp_arith.h +++ b/src/util/mp_arith.h @@ -53,15 +53,15 @@ const std::string integer2binary(const mp_integer &, std::size_t width); const mp_integer binary2integer(const std::string &, bool is_signed); /// \deprecated use numeric_cast instead -//DEPRECATED("Use numeric_cast instead") +DEPRECATED("Use numeric_cast instead") mp_integer::ullong_t integer2ulong(const mp_integer &); /// \deprecated use numeric_cast instead -//DEPRECATED("Use numeric_cast instead") +DEPRECATED("Use numeric_cast instead") std::size_t integer2size_t(const mp_integer &); /// \deprecated use numeric_cast instead -//DEPRECATED("Use numeric_cast instead") +DEPRECATED("Use numeric_cast instead") unsigned integer2unsigned(const mp_integer &); const mp_integer mp_zero=string2integer("0");