All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] configure.ac: disable annoying warning -Wmissing-field-initializers
@ 2016-01-12 21:14 Marek Olšák
  2016-01-15 11:12 ` Emil Velikov
  2016-01-16 19:49 ` Ilia Mirkin
  0 siblings, 2 replies; 27+ messages in thread
From: Marek Olšák @ 2016-01-12 21:14 UTC (permalink / raw)
  To: dri-devel

From: Marek Olšák <marek.olsak@amd.com>

It warns for all "{}" initializers. Well, I want us to use {}.
---
 configure.ac         | 3 ++-
 intel/intel_decode.c | 2 --
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index c8c4ace..057a846 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 e7aef74..287c342 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 {
-- 
2.1.4

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2016-01-22 19:33 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-12 21:14 [PATCH] configure.ac: disable annoying warning -Wmissing-field-initializers Marek Olšák
2016-01-15 11:12 ` Emil Velikov
2016-01-15 15:24   ` Marek Olšák
2016-01-16 19:46     ` David Herrmann
2016-01-18 14:45     ` Emil Velikov
2016-01-18 15:43       ` Marek Olšák
2016-01-18 15:51         ` Jani Nikula
2016-01-18 16:05         ` Emil Velikov
2016-01-18 22:53           ` Marek Olšák
2016-01-21 10:51             ` Emil Velikov
2016-01-21 12:08               ` Marek Olšák
2016-01-21 13:09                 ` Emil Velikov
2016-01-21 16:58                   ` Marek Olšák
2016-01-22 17:13                     ` Emil Velikov
2016-01-22 17:18                       ` Marek Olšák
2016-01-22 17:29                         ` Ilia Mirkin
2016-01-22 17:40                           ` Emil Velikov
2016-01-22 17:47                             ` Ville Syrjälä
2016-01-22 17:48                               ` Ilia Mirkin
2016-01-22 19:18                                 ` Jan Vesely
2016-01-22 17:50                               ` Emil Velikov
2016-01-22 17:59                                 ` Emil Velikov
2016-01-22 18:49                                   ` Ville Syrjälä
2016-01-22 19:21                                     ` Emil Velikov
2016-01-22 19:33                                       ` Ville Syrjälä
2016-01-19  3:42           ` Michel Dänzer
2016-01-16 19:49 ` Ilia Mirkin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.