|
|
@ -592,9 +592,6 @@ else()
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ARCH_FLAG}")
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ARCH_FLAG}")
|
|
|
|
|
|
|
|
|
|
|
|
set(WARNINGS "-Wall -Wextra -Wpointer-arith -Wundef -Wvla -Wwrite-strings -Wno-error=extra -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-unused-variable -Wno-error=unused-variable -Wno-error=undef -Wno-error=uninitialized")
|
|
|
|
set(WARNINGS "-Wall -Wextra -Wpointer-arith -Wundef -Wvla -Wwrite-strings -Wno-error=extra -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-unused-variable -Wno-error=unused-variable -Wno-error=undef -Wno-error=uninitialized")
|
|
|
|
if(NOT MINGW)
|
|
|
|
|
|
|
|
set(WARNINGS_AS_ERRORS_FLAG "-Werror")
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
|
|
|
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
|
|
|
if(ARM)
|
|
|
|
if(ARM)
|
|
|
|
set(WARNINGS "${WARNINGS} -Wno-error=inline-asm")
|
|
|
|
set(WARNINGS "${WARNINGS} -Wno-error=inline-asm")
|
|
|
|