You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jm...@apache.org on 2006/04/04 15:05:20 UTC

svn commit: r391293 - /spamassassin/trunk/spamc/libspamc.h

Author: jm
Date: Tue Apr  4 06:05:17 2006
New Revision: 391293

URL: http://svn.apache.org/viewcvs?rev=391293&view=rev
Log:
bug 4855: disable deprecated 'unsafe' function warnings on MSVC++ >= VC8+, patch from Nico Prenzel

Modified:
    spamassassin/trunk/spamc/libspamc.h

Modified: spamassassin/trunk/spamc/libspamc.h
URL: http://svn.apache.org/viewcvs/spamassassin/trunk/spamc/libspamc.h?rev=391293&r1=391292&r2=391293&view=diff
==============================================================================
--- spamassassin/trunk/spamc/libspamc.h (original)
+++ spamassassin/trunk/spamc/libspamc.h Tue Apr  4 06:05:17 2006
@@ -26,8 +26,13 @@
  4115 named type definition in parentheses
  4127 conditional expression is constant
  4514 unreferenced inline function removed
+ 4996 deprecated "unsafe" functions (bug 4855)
  */
 #pragma warning( disable : 4115 4127 4514 )
+#if (_MSC_VER >= 1400)  // VC8+
+#pragma warning( disable : 4996 )
+#endif
+
 #endif
 #include <winsock.h>
 #else