depot/third_party/nixpkgs/pkgs/applications/virtualization/libgovirt/auto-disable-incompatible-compiler-warnings.patch
Default email 686ce24904 Project import generated by Copybara.
GitOrigin-RevId: ac1f5b72a9e95873d1de0233fddcb56f99884b37
2023-02-16 18:41:37 +01:00

12 lines
418 B
Diff

diff --git a/meson.build b/meson.build
index d5c3627..2bd692a 100644
--- a/meson.build
+++ b/meson.build
@@ -86,7 +86,7 @@ govirt_global_cflags = ['-std=c99',
'-Woverride-init',
'-Wno-unused-parameter']
-foreach arg : govirt_global_cflags
+foreach arg : compiler.get_supported_arguments(govirt_global_cflags)
add_project_arguments(arg, language : 'c')
endforeach