Skip to content
Permalink
Browse files
avoid warnings
  • Loading branch information
m-kuhn committed Jun 25, 2021
1 parent a20c909 commit 8f97fd912090d5e2c08448f590492b2491a022b3
Showing with 5 additions and 5 deletions.
  1. +2 −2 src/analysis/CMakeLists.txt
  2. +3 −3 src/core/CMakeLists.txt
@@ -418,15 +418,15 @@ endif()

if(NOT MSVC)
set_source_files_properties(
${CMAKE_BINARY_DIR}/src/analysis/qgsrastercalcparser.cpp
${BISON_QgsRasterCalcParser_OUTPUTS}
PROPERTIES COMPILE_FLAGS "-w"
)
else()
if(PEDANTIC)
# 4127 expression is constant
# 4702 unreachable code
set_source_files_properties(
${CMAKE_BINARY_DIR}/src/analysis/qgsrastercalcparser.cpp
${BISON_QgsRasterCalcParser_OUTPUTS}
PROPERTIES COMPILE_FLAGS "-wd4127 -wd4702"
)
endif()
@@ -862,9 +862,9 @@ endif()

if(NOT MSVC)
set_source_files_properties(
qgsexpressionparser.cpp
qgssqlstatementparser.cpp
qgsmeshcalcparser.cpp
${BISON_QgsExpressionParser_OUTPUTS}
${BISON_QgsSqlStatementParser_OUTPUTS}
${BISON_QgsMeshCalcParser_OUTPUTS}
PROPERTIES COMPILE_FLAGS -w)
else()
# -wd4702 unreachable code

0 comments on commit 8f97fd9

Please sign in to comment.