File tree 3 files changed +30
-2
lines changed
3 files changed +30
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR
22
22
# Ensure NDEBUG is not set for release builds
23
23
set (CMAKE_CXX_FLAGS_RELEASE "-O2" )
24
24
# Enable lots of warnings
25
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wpedantic -Werror" )
25
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wpedantic -Werror -Wno-error=deprecated-declarations " )
26
26
elseif ("${CMAKE_CXX_COMPILER_ID} " STREQUAL "MSVC" )
27
27
# This would be the place to enable warnings for Windows builds, although
28
28
# config.inc doesn't seem to do that currently
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ BUILD_ENV = AUTO
5
5
ifeq ($(BUILD_ENV ), MSVC )
6
6
# CXXFLAGS += /Wall /WX
7
7
else
8
- CXXFLAGS += -Wall -pedantic -Werror
8
+ CXXFLAGS += -Wall -pedantic -Werror - Wno - error = deprecated - declarations
9
9
endif
10
10
11
11
# Select optimisation or debug info
Original file line number Diff line number Diff line change
1
+ /* ******************************************************************\
2
+
3
+ Module:
4
+
5
+ Author: Diffblue Ltd.
6
+
7
+ \*******************************************************************/
8
+
9
+
10
+ #ifndef CPROVER_UTIL_DEPRECATION_H
11
+ #define CPROVER_UTIL_DEPRECATION_H
12
+
13
+ #if __cplusplus >= 201402L
14
+ // C++14
15
+ #define DEPRECATED (msg ) [[deprecated(msg)]]
16
+ #elif defined(__GNUC__)
17
+ // GCC and GCC compatible compilers
18
+ #define DEPRECATED (msg ) __attribute__ ((deprecated(msg)))
19
+ #elif defined(_MSC_VER)
20
+ // Visual Studio
21
+ #define DEPRECATED (msg ) __declspec(deprecated(msg))
22
+ #else
23
+ // Compiler we don't know how to handle or that doesn't have deprecation support
24
+ #define DEPRECATED (msg )
25
+ #endif
26
+
27
+ #endif // CPROVER_UTIL_DEPRECATION_H
28
+
You can’t perform that action at this time.
0 commit comments