summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmCommandArgumentParser.cxx5
-rw-r--r--Source/cmDependsFortranParser.cxx6
-rw-r--r--Source/cmDependsJavaParser.cxx5
-rw-r--r--Source/cmExprParser.cxx5
4 files changed, 21 insertions, 0 deletions
diff --git a/Source/cmCommandArgumentParser.cxx b/Source/cmCommandArgumentParser.cxx
index a95ac23..4ccb4db 100644
--- a/Source/cmCommandArgumentParser.cxx
+++ b/Source/cmCommandArgumentParser.cxx
@@ -34,6 +34,11 @@
define necessary library symbols; they are noted "INFRINGES ON
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. */
#define YYBISON 1
diff --git a/Source/cmDependsFortranParser.cxx b/Source/cmDependsFortranParser.cxx
index dc69e36..b5d33cf 100644
--- a/Source/cmDependsFortranParser.cxx
+++ b/Source/cmDependsFortranParser.cxx
@@ -33,6 +33,12 @@
define necessary library symbols; they are noted "INFRINGES ON
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. */
#define YYBISON 1
diff --git a/Source/cmDependsJavaParser.cxx b/Source/cmDependsJavaParser.cxx
index 5405c05..182d160 100644
--- a/Source/cmDependsJavaParser.cxx
+++ b/Source/cmDependsJavaParser.cxx
@@ -33,6 +33,11 @@
define necessary library symbols; they are noted "INFRINGES ON
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. */
#define YYBISON 1
diff --git a/Source/cmExprParser.cxx b/Source/cmExprParser.cxx
index 6c55f22..aa9190e 100644
--- a/Source/cmExprParser.cxx
+++ b/Source/cmExprParser.cxx
@@ -33,6 +33,11 @@
define necessary library symbols; they are noted "INFRINGES ON
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. */
#define YYBISON 1