mirror of https://github.com/microsoft/vcpkg.git
23 lines
1.6 KiB
Diff
23 lines
1.6 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index d75dfdb6..7089c406 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -177,7 +177,7 @@ if (CMAKE_COMPILER_IS_GNUCC)
|
|
endif (ENABLE_WARNING_ERROR)
|
|
set (COMPILE_WARNING_FLAGS "${WERROR} -Wall -pedantic-errors")
|
|
set (CXX_WARNING_FLAGS "${COMPILE_WARNING_FLAGS}")
|
|
- set (COMPILE_WARNING_FLAGS "${COMPILE_WARNING_FLAGS} -Wstrict-prototypes -Wvla -Wsign-compare -Wwrite-strings")
|
|
+ set (COMPILE_WARNING_FLAGS "${COMPILE_WARNING_FLAGS} -Wno-deprecated-declarations -Wstrict-prototypes -Wvla -Wsign-compare -Wwrite-strings")
|
|
|
|
if (ENABLE_UNDEFINED_ERROR)
|
|
set (CATCH_UNDEFINED "-Wl,--no-undefined")
|
|
@@ -202,7 +202,7 @@ if (CMAKE_C_COMPILER_ID MATCHES "Clang")
|
|
endif (ENABLE_WARNING_ERROR)
|
|
# TODO aconway 2016-01-06: we should be able to clean up the code and turn on
|
|
# some of these warnings.
|
|
- set (CXX_WARNING_FLAGS "${COMPILE_WARNING_FLAGS} -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-float-equal -Wno-padded -Wno-sign-conversion -Wno-switch-enum -Wno-weak-vtables -Wno-exit-time-destructors -Wno-global-constructors -Wno-shorten-64-to-32 -Wno-documentation -Wno-documentation-unknown-command -Wno-old-style-cast -Wno-missing-noreturn")
|
|
+ set (CXX_WARNING_FLAGS "${COMPILE_WARNING_FLAGS} -Wno-deprecated-declarations -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-float-equal -Wno-padded -Wno-sign-conversion -Wno-switch-enum -Wno-weak-vtables -Wno-exit-time-destructors -Wno-global-constructors -Wno-shorten-64-to-32 -Wno-documentation -Wno-documentation-unknown-command -Wno-old-style-cast -Wno-missing-noreturn")
|
|
endif()
|
|
|
|
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|