Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
suppress warnings for generated files
  • Loading branch information
m-kuhn committed Jun 25, 2021
1 parent 8f97fd9 commit 20742e5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/analysis/CMakeLists.txt
Expand Up @@ -419,6 +419,7 @@ endif()
if(NOT MSVC)
set_source_files_properties(
${BISON_QgsRasterCalcParser_OUTPUTS}
${FLEX_QgsRasterCalcLexer_OUTPUTS}
PROPERTIES COMPILE_FLAGS "-w"
)
else()
Expand All @@ -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()
Expand Down
13 changes: 12 additions & 1 deletion src/core/CMakeLists.txt
Expand Up @@ -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()
Expand All @@ -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
Expand Down

0 comments on commit 20742e5

Please sign in to comment.