Skip to content

Commit

Permalink
CMake: Add warning for missing field initializers globally
Browse files Browse the repository at this point in the history
This warning is already enabled by our existing flags with gcc-13,
so make sure that clang checks these as well.
  • Loading branch information
ADKaster committed Nov 4, 2024
1 parent 6bc339b commit 8eefe7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Meta/CMake/common_compile_options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ add_cxx_compile_options(-Wcast-qual)
add_cxx_compile_options(-Wformat=2)
add_cxx_compile_options(-Wimplicit-fallthrough)
add_cxx_compile_options(-Wmissing-declarations)
add_cxx_compile_options(-Wmissing-field-initializers)
add_cxx_compile_options(-Wsuggest-override)

add_cxx_compile_options(-Wno-invalid-offsetof)
Expand Down

0 comments on commit 8eefe7b

Please sign in to comment.