Disable unused-function warning for clang-check

This commit is contained in:
Manuel Pégourié-Gonnard 2014-01-22 16:01:44 +01:00 committed by Paul Bakker
parent 0b6355d088
commit 7214f5437d

View file

@ -15,7 +15,7 @@ endif(CMAKE_COMPILER_IS_GNUCC)
if(CMAKE_COMPILER_IS_CLANG)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -Wall -Wextra -W -Wdeclaration-after-statement")
set(CMAKE_C_FLAGS_DEBUG "-g3 -O0")
set(CMAKE_C_FLAGS_CHECK "${CMAKE_C_FLAGS} -Werror -Wpointer-arith -Wwrite-strings -Wdocumentation")
set(CMAKE_C_FLAGS_CHECK "${CMAKE_C_FLAGS} -Werror -Wpointer-arith -Wwrite-strings -Wdocumentation -Wno-unused-function")
endif(CMAKE_COMPILER_IS_CLANG)
if(CMAKE_BUILD_TYPE STREQUAL "Coverage")