summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/testConsoleBuf.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-05-30 13:31:35 (GMT)
committerBrad King <brad.king@kitware.com>2019-05-30 13:31:35 (GMT)
commit3a7f493b7b92eeead6841c393d7bbed62b52cbc9 (patch)
tree2933710b08894d7edbca39cf7d66c72689fe4af5 /Source/kwsys/testConsoleBuf.cxx
parentc68efd196eace176bed5216573d99fabba66df84 (diff)
parent9ef1e13bcccd46c822ee813017601781bbe9a43d (diff)
downloadCMake-3a7f493b7b92eeead6841c393d7bbed62b52cbc9.zip
CMake-3a7f493b7b92eeead6841c393d7bbed62b52cbc9.tar.gz
CMake-3a7f493b7b92eeead6841c393d7bbed62b52cbc9.tar.bz2
Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys: KWSys 2019-05-30 (f892bacf)
Diffstat (limited to 'Source/kwsys/testConsoleBuf.cxx')
-rw-r--r--Source/kwsys/testConsoleBuf.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/kwsys/testConsoleBuf.cxx b/Source/kwsys/testConsoleBuf.cxx
index 1549440..b6ad118 100644
--- a/Source/kwsys/testConsoleBuf.cxx
+++ b/Source/kwsys/testConsoleBuf.cxx
@@ -499,6 +499,9 @@ static int testConsole()
# pragma warning(push)
# ifdef __INTEL_COMPILER
# pragma warning(disable : 1478)
+# elif defined __clang__
+# pragma clang diagnostic push
+# pragma clang diagnostic ignored "-Wdeprecated-declarations"
# else
# pragma warning(disable : 4996)
# endif
@@ -506,7 +509,11 @@ static int testConsole()
const bool isVistaOrGreater =
LOBYTE(LOWORD(GetVersion())) >= HIBYTE(_WIN32_WINNT_VISTA);
# ifdef KWSYS_WINDOWS_DEPRECATED_GetVersion
-# pragma warning(pop)
+# ifdef __clang__
+# pragma clang diagnostic pop
+# else
+# pragma warning(pop)
+# endif
# endif
if (!isVistaOrGreater) {
if (RegOpenKeyExW(HKEY_CURRENT_USER, L"Console", 0, KEY_READ | KEY_WRITE,