From a248138cedaa1095907e9f9177f613a1940ae377 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Tue, 1 Jun 2010 05:40:03 +0000 Subject: Constant deprecation is disabled only on old IntelC, removed deprecation warnings with appropriate define instead of disabling warning via pragma git-svn-id: http://pugixml.googlecode.com/svn/trunk@489 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixpath.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/pugixpath.cpp') diff --git a/src/pugixpath.cpp b/src/pugixpath.cpp index 75d0e6e..77d1e71 100644 --- a/src/pugixpath.cpp +++ b/src/pugixpath.cpp @@ -11,6 +11,11 @@ * Copyright (C) 2003, by Kristen Wegner (kristen@tima.net) */ +#ifdef _MSC_VER +# define _CRT_SECURE_NO_WARNINGS // disable deprecation warnings for CRT functions +# define _SCL_SECURE_NO_WARNINGS // disable deprecation warnings for STL functions +#endif + #include "pugixml.hpp" #ifndef PUGIXML_NO_XPATH @@ -35,11 +40,8 @@ typedef __int32 int32_t; #endif - #if defined(_MSC_VER) # pragma warning(disable: 4127) // conditional expression is constant -# pragma warning(disable: 4702) // unreachable code -# pragma warning(disable: 4996) // this function or variable may be unsafe #endif #include -- cgit v1.2.3