[Pcre-svn] [1234] code/trunk: Applied patch to quash MSVC wa…

Startseite
Nachricht löschen
Autor: Subversion repository
Datum:  
To: pcre-svn
Betreff: [Pcre-svn] [1234] code/trunk: Applied patch to quash MSVC warnings.
Revision: 1234
          http://vcs.pcre.org/viewvc?view=rev&revision=1234
Author:   ph10
Date:     2012-12-08 16:35:42 +0000 (Sat, 08 Dec 2012)


Log Message:
-----------
Applied patch to quash MSVC warnings.

Modified Paths:
--------------
    code/trunk/CMakeLists.txt
    code/trunk/ChangeLog
    code/trunk/config-cmake.h.in


Modified: code/trunk/CMakeLists.txt
===================================================================
--- code/trunk/CMakeLists.txt    2012-12-08 12:43:37 UTC (rev 1233)
+++ code/trunk/CMakeLists.txt    2012-12-08 16:35:42 UTC (rev 1234)
@@ -60,6 +60,7 @@
 # 2012-09-06 PH added support for PCRE_EBCDIC_NL25
 # 2012-09-08 ChPe added PCRE32 support
 # 2012-10-23 PH added support for VALGRIND and GCOV
+# 2012-12-08 PH added patch from Daniel Richard G to quash some MSVC warnings


PROJECT(PCRE C CXX)

@@ -570,7 +571,7 @@
ADD_DEFINITIONS(-DHAVE_CONFIG_H)

 IF(MSVC)
-        ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE)
+        ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS)
 ENDIF(MSVC)


SET(CMAKE_INCLUDE_CURRENT_DIR 1)

Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2012-12-08 12:43:37 UTC (rev 1233)
+++ code/trunk/ChangeLog    2012-12-08 16:35:42 UTC (rev 1234)
@@ -8,6 +8,9 @@
     avoid compiler signed/unsigned warnings. Added (int) casts to unsigned
     variables that are added to signed variables, to ensure the result is
     signed and can be negated.
+    
+2.  Applied patch by Daniel Richard G for quashing MSVC warnings to the
+    CMake config files.



Version 8.32 30-November-2012

Modified: code/trunk/config-cmake.h.in
===================================================================
--- code/trunk/config-cmake.h.in    2012-12-08 12:43:37 UTC (rev 1233)
+++ code/trunk/config-cmake.h.in    2012-12-08 16:35:42 UTC (rev 1234)
@@ -51,8 +51,4 @@
 #define MAX_NAME_SIZE    32
 #define MAX_NAME_COUNT    10000


-#ifdef _MSC_VER
-#define _CRT_SECURE_NO_WARNINGS 1
-#endif
-
/* end config.h for CMake builds */