Skip to content

Commit

Permalink
tests: disable -Wmissing-field-initializers both for GCC and Clang
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Dec 27, 2023
1 parent f07c71d commit adf1f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
else()
set(c_flags ${c_flags} -Wall -Wextra -Werror -Wsign-conversion)
set(cxx_flags ${cxx_flags} -Wall -Wextra -Werror -Wsign-conversion -fno-rtti -fno-exceptions)
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(c_flags ${c_flags} -Wno-missing-field-initializers)
set(cxx_flags ${cxx_flags} -Wno-missing-field-initializers)
endif()
Expand Down

0 comments on commit adf1f83

Please # to comment.