Skip to content

Commit e888483

Browse files
committed
Removed unused parameter error for x86 Mac
1 parent 34b215f commit e888483

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

SerialPrograms/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,9 +462,10 @@ else() # macOS and Linux
462462
endif()
463463

464464
if (APPLE)
465-
target_compile_options(SerialProgramsLib PRIVATE -Wall -Wextra -Wpedantic -Werror)
466465
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm")
467-
target_compile_options(SerialProgramsLib PRIVATE -Wshorten-64-to-32)
466+
target_compile_options(SerialProgramsLib PRIVATE -Wall -Wextra -Wpedantic -Werror -Wshorten-64-to-32)
467+
else()
468+
target_compile_options(SerialProgramsLib PRIVATE -Wall -Wextra -Wpedantic -Werror -Wno-unused-parameter)
468469
endif()
469470

470471
# on macOS, need this framework to query OS API to control display sleep and system sleep behavior

0 commit comments

Comments
 (0)