dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Marek Olšák" <maraeo@gmail.com>
To: dri-devel@lists.freedesktop.org
Subject: [PATCH] configure.ac: disable annoying warning -Wmissing-field-initializers
Date: Tue, 12 Jan 2016 22:14:20 +0100	[thread overview]
Message-ID: <1452633260-26767-1-git-send-email-maraeo@gmail.com> (raw)

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

             reply	other threads:[~2016-01-12 21:14 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-12 21:14 Marek Olšák [this message]
2016-01-15 11:12 ` [PATCH] configure.ac: disable annoying warning -Wmissing-field-initializers 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1452633260-26767-1-git-send-email-maraeo@gmail.com \
    --to=maraeo@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox