[llvm] r301572 - Limit disabling of warnings emitted from r301571 by checking __GNUC__.
Frederich Munch via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 27 11:05:30 PDT 2017
Author: marsupial
Date: Thu Apr 27 13:05:29 2017
New Revision: 301572
URL: http://llvm.org/viewvc/llvm-project?rev=301572&view=rev
Log:
Limit disabling of warnings emitted from r301571 by checking __GNUC__.
Modified:
llvm/trunk/unittests/Support/DynamicLibrary/PipSqueak.cxx
Modified: llvm/trunk/unittests/Support/DynamicLibrary/PipSqueak.cxx
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/DynamicLibrary/PipSqueak.cxx?rev=301572&r1=301571&r2=301572&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/DynamicLibrary/PipSqueak.cxx (original)
+++ llvm/trunk/unittests/Support/DynamicLibrary/PipSqueak.cxx Thu Apr 27 13:05:29 2017
@@ -9,7 +9,7 @@
#include "PipSqueak.h"
-#ifdef _WIN32
+#if defined(_WIN32) && !defined(__GNUC__)
// Disable warnings from inclusion of xlocale & exception
#pragma warning(push)
#pragma warning(disable: 4530)
More information about the llvm-commits
mailing list