Skip to content

Commit 1e8978c

Browse files
committed
CMake config: Disable some warnings on GNU compiler
1 parent 6a4c50f commit 1e8978c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,10 @@ if(CMAKE_BUILD_TYPE STREQUAL "Dev")
256256
# add_definitions(${OSMIUM_WARNING_OPTIONS} ${OSMIUM_DRACONIC_CLANG_OPTIONS} -Wno-documentation -Wno-format-nonliteral -Wno-deprecated -Wno-covered-switch-default -Wno-shadow)
257257
endif()
258258

259+
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
260+
add_definitions(-Wno-stringop-overread -Wno-dangling-reference)
261+
endif()
262+
259263
# Force RelWithDebInfo build type if none was given
260264
if(CMAKE_BUILD_TYPE)
261265
set(build_type ${CMAKE_BUILD_TYPE})

0 commit comments

Comments
 (0)