summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640>2012-04-12 03:28:02 +0000
committerarseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640>2012-04-12 03:28:02 +0000
commitb1a1eef0c828efe5ec61afce004e1a79c628c8aa (patch)
treeb08040df442f40e39509f20b2422081d98a1398b
parent78f8662d3310b12e1bc6a8c07dc1ce4223d38eae (diff)
Removed diag_push for SNC since the warning bug is not fixed even in the latest version
git-svn-id: http://pugixml.googlecode.com/svn/trunk@901 99668b35-9821-0410-8761-19e4c4f06640
-rw-r--r--src/pugixml.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index a0f8cc6..7dadede 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -67,7 +67,7 @@
#endif
#ifdef __SNC__
-# pragma diag_push
+// Using diag_push/diag_pop does not disable the warnings inside templates due to a compiler bug
# pragma diag_suppress=178 // function was declared but never referenced
# pragma diag_suppress=237 // controlling expression is constant
#endif
@@ -10187,11 +10187,6 @@ namespace pugi
#endif
-// SNC seems to have the same bug as Intel (below); I need to test more versions to do a proper check here
-// #ifdef __SNC__
-// # pragma diag_pop
-// #endif
-
#ifdef __BORLANDC__
# pragma option pop
#endif