Skip to content

Commit

Permalink
AppleClang 16: suppress invalid-unevaluated-string (#4744)
Browse files Browse the repository at this point in the history
Accroding to xcode 16 release notes:
https://developer.apple.com/documentation/xcode-release-notes/xcode-16-release-notes
XCode 16 supports `Unevaluated strings`

We need to suppress this warning when compiling with AppleClang >= 16
  • Loading branch information
wkgcass authored Jan 16, 2025
1 parent ba795e0 commit 5482269
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,8 @@ else()
list(APPEND QUIC_WARNING_FLAGS -Wno-strict-aliasing)
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
list(APPEND QUIC_WARNING_FLAGS -Wno-missing-braces -Wno-microsoft-anon-tag)
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 18)
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 18 OR
(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 16 AND CMAKE_CXX_COMPILER_ID MATCHES "AppleClang"))
list(APPEND QUIC_WARNING_FLAGS -Wno-invalid-unevaluated-string)
endif()
endif()
Expand Down

0 comments on commit 5482269

Please sign in to comment.