Skip to content

Commit

Permalink
Disable noisy Intel ICC fallthrough warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkelfj committed Mar 11, 2024
1 parent f6fde5f commit 8550ab9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,10 @@ elseif (CMAKE_C_COMPILER_ID STREQUAL "GNU")
elseif (CMAKE_C_COMPILER_ID STREQUAL "Intel")
message(STATUS "Setting Intel C compiler options")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11 -Wall -Wextra")
# warning #169: expected a declaration
# fallthrough attribute does not like semicolon.
# this is fixed in later intel compilers, but not avaiable in current CI builds.
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -wd169")
elseif (MSVC) # using STREQUAL here conflicts with string interpretation changes in CMake
message(STATUS "Setting MSVC C compiler options")
# -DFLATCC_PORTABLE also required, but set earlier
Expand Down

0 comments on commit 8550ab9

Please sign in to comment.