diff options
author | Marek Olšák <marek.olsak@amd.com> | 2016-01-12 22:09:24 +0100 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2016-01-20 02:14:03 +0100 |
commit | 5198f2b2e658651d9cb81d67998ba7b2c39e12d7 (patch) | |
tree | 0258774709e7bb14b664bd1851b318300ce2b713 | |
parent | e342c0fc250f3f16b817c43e96ab9b839fcb15c2 (diff) |
configure.ac: disable annoying warning -Wmissing-field-initializers
It warns for all "{}" initializers.
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | intel/intel_decode.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index c8c4ace213f3..057a8460e8c5 100644 --- a/configure.ac +++ b/configure.ac @@ -174,7 +174,8 @@ MAYBE_WARN="-Wall -Wextra \ -Wstrict-aliasing=2 -Winit-self \ -Wdeclaration-after-statement -Wold-style-definition \ -Wno-unused-parameter \ --Wno-attributes -Wno-long-long -Winline -Wshadow" +-Wno-attributes -Wno-long-long -Winline -Wshadow \ +-Wno-missing-field-initializers" # invalidate cached value if MAYBE_WARN has changed if test "x$libdrm_cv_warn_maybe" != "x$MAYBE_WARN"; then diff --git a/intel/intel_decode.c b/intel/intel_decode.c index e7aef742afae..287c34277db1 100644 --- a/intel/intel_decode.c +++ b/intel/intel_decode.c @@ -38,8 +38,6 @@ #include "intel_chipset.h" #include "intel_bufmgr.h" -/* The compiler throws ~90 warnings. Do not spam the build, until we fix them. */ -#pragma GCC diagnostic ignored "-Wmissing-field-initializers" /* Struct for tracking drm_intel_decode state. */ struct drm_intel_decode { |