Skip to content

Commit f65958f

Browse files
TheMarexPatrick Niklaus
authored andcommitted
Disable error on -unused-local-typedef for clang since it has false positives
1 parent 3d6b667 commit f65958f

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
@@ -321,7 +321,7 @@ endif()
321321
# Configuring compilers
322322
set(OSRM_WARNING_FLAGS "-Werror=all -Werror=extra -Werror=uninitialized -Werror=unreachable-code -Werror=unused-variable -Werror=unreachable-code -Wno-error=cpp -Wpedantic")
323323
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
324-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OSRM_WARNING_FLAGS} -Werror=strict-overflow=2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fPIC -fcolor-diagnostics -ftemplate-depth=1024 -Wno-unused-command-line-argument")
324+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OSRM_WARNING_FLAGS} -Werror=strict-overflow=2 -Wno-error=unused-local-typedef -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fPIC -fcolor-diagnostics -ftemplate-depth=1024 -Wno-unused-command-line-argument")
325325
elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
326326
set(COLOR_FLAG "-fdiagnostics-color=auto")
327327
check_cxx_compiler_flag("-fdiagnostics-color=auto" HAS_COLOR_FLAG)

0 commit comments

Comments
 (0)