1
0
Ken Martin 18 жил өмнө
parent
commit
420095c013

+ 5 - 0
Source/cmCommandArgumentParser.cxx

@@ -34,6 +34,11 @@
    define necessary library symbols; they are noted "INFRINGES ON
    define necessary library symbols; they are noted "INFRINGES ON
    USER NAME SPACE" below.  */
    USER NAME SPACE" below.  */
 
 
+/* turn off some warning as this is generated code */
+#if defined(_MSC_VER)
+#  pragma warning ( disable : 4702 ) /* unreachable code */
+#endif
+
 /* Identify Bison output.  */
 /* Identify Bison output.  */
 #define YYBISON 1
 #define YYBISON 1
 
 

+ 6 - 0
Source/cmDependsFortranParser.cxx

@@ -33,6 +33,12 @@
    define necessary library symbols; they are noted "INFRINGES ON
    define necessary library symbols; they are noted "INFRINGES ON
    USER NAME SPACE" below.  */
    USER NAME SPACE" below.  */
 
 
+/* turn off some warning as this is generated code */
+#if defined(_MSC_VER)
+#  pragma warning ( disable : 4244 ) /* loss of precision */
+#  pragma warning ( disable : 4702 ) /* unreachable code */
+#endif
+
 /* Identify Bison output.  */
 /* Identify Bison output.  */
 #define YYBISON 1
 #define YYBISON 1
 
 

+ 5 - 0
Source/cmDependsJavaParser.cxx

@@ -33,6 +33,11 @@
    define necessary library symbols; they are noted "INFRINGES ON
    define necessary library symbols; they are noted "INFRINGES ON
    USER NAME SPACE" below.  */
    USER NAME SPACE" below.  */
 
 
+/* turn off some warning as this is generated code */
+#if defined(_MSC_VER)
+#  pragma warning ( disable : 4702 ) /* unreachable code */
+#endif
+
 /* Identify Bison output.  */
 /* Identify Bison output.  */
 #define YYBISON 1
 #define YYBISON 1
 
 

+ 5 - 0
Source/cmExprParser.cxx

@@ -33,6 +33,11 @@
    define necessary library symbols; they are noted "INFRINGES ON
    define necessary library symbols; they are noted "INFRINGES ON
    USER NAME SPACE" below.  */
    USER NAME SPACE" below.  */
 
 
+/* turn off some warning as this is generated code */
+#if defined(_MSC_VER)
+#  pragma warning ( disable : 4702 ) /* unreachable code */
+#endif
+
 /* Identify Bison output.  */
 /* Identify Bison output.  */
 #define YYBISON 1
 #define YYBISON 1