Skip to content

Commit

Permalink
[cmake] Suppress enum warning on all clang, not just Apple (#7771)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJohnson authored Feb 10, 2025
1 parent d2611d4 commit 53df127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/modules/CompileWarnings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ macro(wpilib_target_warnings target)

# Suppress warning "enumeration types with a fixed underlying type are a
# Clang extension"
if(APPLE)
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(${target} PRIVATE $<$<COMPILE_LANGUAGE:C>:-Wno-fixed-enum-extension>)
endif()

Expand Down

0 comments on commit 53df127

Please sign in to comment.