summaryrefslogtreecommitdiff
path: root/lib/cpp/test
diff options
context:
space:
mode:
authorKevin Wojniak <kainjow@users.noreply.github.com>2019-11-03 15:09:51 -0800
committerJens Geyer <jensg@apache.org>2019-11-06 01:11:55 +0100
commit596e25f9b07f4eb626e8644b6cc18b93c417b4e5 (patch)
treed0fe1d7340e6479a0bb47e019532fffee2882406 /lib/cpp/test
parent4653009035db96228e33e8965e432752b41c8ed1 (diff)
downloadthrift-596e25f9b07f4eb626e8644b6cc18b93c417b4e5.tar.gz
Fix unknown pragma warnings on mingw
Client: cpp Patch: Kevin Wojniak This closes #1917 These pragmas are only valid for MSVC. Fixes warnings found in the logs: > In file included from C:\projects\thrift\lib\cpp\test\processor\ProcessorTest.cpp:40: 731C:\projects\thrift\lib\cpp\test\processor\Handlers.h:143: warning: ignoring #pragma warning [-Wunknown-pragmas] 732 143 | #pragma warning( push ) 733 | 734C:\projects\thrift\lib\cpp\test\processor\Handlers.h:144: warning: ignoring #pragma warning [-Wunknown-pragmas] 735 144 | #pragma warning (disable : 4250 ) //inheriting methods via dominance 736 | 737C:\projects\thrift\lib\cpp\test\processor\Handlers.h:172: warning: ignoring #pragma warning [-Wunknown-pragmas] 738 172 | #pragma warning( pop ) 739 |
Diffstat (limited to 'lib/cpp/test')
-rw-r--r--lib/cpp/test/processor/Handlers.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cpp/test/processor/Handlers.h b/lib/cpp/test/processor/Handlers.h
index 05d19edd9..d72a23c90 100644
--- a/lib/cpp/test/processor/Handlers.h
+++ b/lib/cpp/test/processor/Handlers.h
@@ -139,7 +139,7 @@ protected:
std::shared_ptr<EventLog> log_;
};
-#ifdef _WIN32
+#ifdef _MSC_VER
#pragma warning( push )
#pragma warning (disable : 4250 ) //inheriting methods via dominance
#endif
@@ -168,7 +168,7 @@ protected:
int32_t value_;
};
-#ifdef _WIN32
+#ifdef _MSC_VER
#pragma warning( pop )
#endif