Skip to content

Commit 7fddd36

Browse files
committed
Fixup warnings
1 parent 984b875 commit 7fddd36

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ add_subdirectory(unboxing EXCLUDE_FROM_ALL)
77
if(WIN32)
88
set(WARNINGS /MP)
99
elseif(APPLE)
10-
set(WARNINGS -Wall -Wextra -Wpedantic -pedantic-errors -Wformat-overflow -Wstrict-overflow=2 -Werror)
10+
set(WARNINGS -Wall -Wextra -Wpedantic -pedantic-errors -Wformat-overflow -Wstrict-overflow=2)
1111
else()
12-
set(WARNINGS -Wall -Wextra -Wpedantic -pedantic-errors -Wformat-overflow=1 -Wstrict-overflow=2 -Werror)
12+
set(WARNINGS -Wall -Wextra -Wpedantic -pedantic-errors -Wformat-overflow=1 -Wstrict-overflow=2)
1313
endif()
1414

1515
add_library(minixml
@@ -28,7 +28,7 @@ target_compile_options(minixml PRIVATE ${WARNINGS})
2828
target_include_directories(minixml PUBLIC thirdparty/minixml/inc)
2929
if(WIN32)
3030
target_compile_definitions(minixml PRIVATE _CRT_SECURE_NO_WARNINGS)
31-
else()
31+
elseif(NOT APPLE)
3232
target_compile_options(minixml PRIVATE -Wno-use-after-free)
3333
endif()
3434

0 commit comments

Comments
 (0)