Skip to content
Permalink
Browse files

[opencl] Restore clang -Wimplicit-fallthrough

  • Loading branch information
elpaso committed Aug 8, 2018
1 parent 6ecf16e commit 0960b1f25f8979558931a3b484ca78e32be2b48f
Showing with 1 addition and 1 deletion.
  1. +1 −1 CMakeLists.txt
@@ -473,7 +473,7 @@ IF (PEDANTIC)
# ADD_DEFINITIONS( -fstrict-aliasing -Wstrict-aliasing=1 -Wredundant-decls )

IF ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-return-type-c-linkage -Wno-overloaded-virtual")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-return-type-c-linkage -Wno-overloaded-virtual -Wimplicit-fallthrough")
ENDIF ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")

# add any extra CXXFLAGS flags set by user. can be -D CXX_EXTRA_FLAGS or environment variable

0 comments on commit 0960b1f

Please sign in to comment.
You can’t perform that action at this time.