diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2019-03-03 19:49:33 +0200 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2019-09-19 19:01:16 +0300 |
commit | 696f7eda807932f72ba0eb49c8ec7f2e210dd579 (patch) | |
tree | f589589451e206fbf128da42228913fd48f4a437 /src | |
parent | 4b26ec2ef680f595dded9b1fd5c5ef43edba17a5 (diff) |
Avoid missing initializer warning
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@linux.intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/intel_module.c | 2 | ||||
-rw-r--r-- | src/meson.build | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/intel_module.c b/src/intel_module.c index 171b20d8..a71c2e40 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 0a46e233..1125c65b 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'), |