Skip to content

Commit

Permalink
suppress macos warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rzblue committed Sep 19, 2023
1 parent f894a05 commit 405f10f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/modules/CompileWarnings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ macro(wpilib_target_warnings target)
target_compile_options(${target} PRIVATE /wd4146 /wd4244 /wd4251 /wd4267 /WX /D_CRT_SECURE_NO_WARNINGS ${WPILIB_TARGET_WARNINGS})
endif()

if(APPLE)
target_compile_options(${target} PRIVATE -Wno-fixed-enum-extension)
endif()

# Suppress C++-specific OpenCV warning; C compiler rejects it with an error
# https://github.com/opencv/opencv/issues/20269
if(UNIX AND NOT APPLE)
Expand Down

0 comments on commit 405f10f

Please sign in to comment.