From b1a1eef0c828efe5ec61afce004e1a79c628c8aa Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine@gmail.com" Date: Thu, 12 Apr 2012 03:28:02 +0000 Subject: 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 --- src/pugixml.cpp | 7 +------ 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3