1
0
mirror of synced 2024-11-12 10:10:53 +01:00

build: Remove more warnings from ObjC compiler

This commit is contained in:
WerWolv 2022-08-05 09:16:16 +02:00
parent c55a69c010
commit 5cb326f95b

View File

@ -369,9 +369,10 @@ function(downloadImHexPatternsFiles dest)
endfunction()
macro(setupCompilerWarnings target)
set(DEFAULT_FLAGS "-Wall -Wextra -Werror -Wno-stringop-overread")
set(IMHEX_COMMON_FLAGS "-Wall -Wextra -Werror")
set(IMHEX_C_FLAGS "${IMHEX_COMMON_FLAGS} -Wno-restrict -Wno-stringop-overread")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${DEFAULT_FLAGS} -Wno-restrict")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DEFAULT_FLAGS} -Wno-restrict")
set(CMAKE_OBJC_FLAGS "${CMAKE_OBJC_FLAGS} ${DEFAULT_FLAGS}")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${IMHEX_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${IMHEX_C_FLAGS}")
set(CMAKE_OBJC_FLAGS "${CMAKE_OBJC_FLAGS} ${IMHEX_COMMON_FLAGS}")
endmacro()