CMake: Add warning for missing field initializers globally

This warning is already enabled by our existing flags with gcc-13,
so make sure that clang checks these as well.
This commit is contained in:
Andrew Kaster 2024-11-04 14:19:51 -07:00 committed by Andrew Kaster
parent 6bc339b737
commit 8eefe7b152
Notes: github-actions[bot] 2024-11-04 23:11:09 +00:00

View file

@ -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)