[Intel-gfx] [PATCH xf86-video-intel 09/21] Avoid missing initializer warning

Ville Syrjala ville.syrjala at linux.intel.com
Thu Sep 19 16:31:01 UTC 2019


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

Use an empty {} as the terminator in intel_device_match[] to avoid
the warning about missing initlizers.

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 src/intel_module.c | 2 +-
 src/meson.build    | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/intel_module.c b/src/intel_module.c
index 171b20d83d33..a71c2e40b774 100644
--- a/src/intel_module.c
+++ b/src/intel_module.c
@@ -388,7 +388,7 @@ static const struct pci_id_match intel_device_match[] = {
 	INTEL_VGA_DEVICE(PCI_MATCH_ANY, &intel_generic_info),
 #endif
 
-	{ 0, 0, 0 },
+	{},
 };
 
 void
diff --git a/src/meson.build b/src/meson.build
index 0a46e233a94c..1125c65b73be 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -150,7 +150,6 @@ shared_module('intel_drv',
 		'-DMAJOR_IN_SYSMACROS',
 		'-Wno-unused-parameter',
 		'-Wno-sign-compare',
-		'-Wno-missing-field-initializers',
 	      ],
 	      name_prefix : '',
 	      install_dir : join_paths(moduledir, 'drivers'),
-- 
2.21.0



More information about the Intel-gfx mailing list