Skip to content

Commit bee3bdb

Browse files
TheMarexPatrick Niklaus
authored andcommitted
Don't throw errors on -Wmaybe-uninitialized because of false-positives
1 parent b96d36f commit bee3bdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
329329
set(COLOR_FLAG "")
330330
endif()
331331
# using GCC
332-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OSRM_WARNING_FLAGS} -Werror=strict-overflow=1 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 ${COLOR_FLAG} -fPIC -ftemplate-depth=1024")
332+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OSRM_WARNING_FLAGS} -Werror=strict-overflow=1 -Wno-error=maybe-uninitialized -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 ${COLOR_FLAG} -fPIC -ftemplate-depth=1024")
333333
if(WIN32) # using mingw
334334
add_dependency_defines(-DWIN32)
335335
set(OPTIONAL_SOCKET_LIBS ws2_32 wsock32)

0 commit comments

Comments
 (0)