Skip to content
Permalink
Browse files
suppress warnings for generated files
  • Loading branch information
m-kuhn committed Jun 25, 2021
1 parent 8f97fd9 commit 20742e523e0567a312f8b10b6729e800010263de
Showing with 15 additions and 2 deletions.
  1. +3 −1 src/analysis/CMakeLists.txt
  2. +12 −1 src/core/CMakeLists.txt
@@ -419,6 +419,7 @@ endif()
if(NOT MSVC)
set_source_files_properties(
${BISON_QgsRasterCalcParser_OUTPUTS}
${FLEX_QgsRasterCalcLexer_OUTPUTS}
PROPERTIES COMPILE_FLAGS "-w"
)
else()
@@ -427,7 +428,8 @@ else()
# 4702 unreachable code
set_source_files_properties(
${BISON_QgsRasterCalcParser_OUTPUTS}
PROPERTIES COMPILE_FLAGS "-wd4127 -wd4702"
${FLEX_QgsRasterCalcLexer_OUTPUTS}
PROPERTIES COMPILE_FLAGS "-wd4127 -wd4702 /W0"
)
endif()
endif()
@@ -862,8 +862,11 @@ endif()

if(NOT MSVC)
set_source_files_properties(
${FLEX_QgsExpressionLexer_OUTPUTS}
${BISON_QgsExpressionParser_OUTPUTS}
${FLEX_QgsSqlStatementLexer_OUTPUTS}
${BISON_QgsSqlStatementParser_OUTPUTS}
${FLEX_QgsMeshCalcLexer_OUTPUTS}
${BISON_QgsMeshCalcParser_OUTPUTS}
PROPERTIES COMPILE_FLAGS -w)
else()
@@ -872,8 +875,16 @@ else()
geometry/qgsgeos.cpp
pal/feature.cpp
pal/pointset.cpp
${CMAKE_BINARY_DIR}/src/core/qgsmeshcalcparser.cpp
${BISON_QgsMeshCalcParser_OUTPUTS}
PROPERTIES COMPILE_FLAGS -wd4702)
set_source_files_properties(
${FLEX_QgsExpressionLexer_OUTPUTS}
${BISON_QgsExpressionParser_OUTPUTS}
${FLEX_QgsSqlStatementLexer_OUTPUTS}
${BISON_QgsSqlStatementParser_OUTPUTS}
${FLEX_QgsMeshCalcLexer_OUTPUTS}
${BISON_QgsMeshCalcParser_OUTPUTS}
PROPERTIES COMPILE_FLAGS /W0)
endif()

set(QGIS_CORE_HDRS

0 comments on commit 20742e5

Please sign in to comment.