From patchwork Tue Jan 12 21:14:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TWFyZWsgT2zFocOhaw==?= X-Patchwork-Id: 8020981 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BD050BEEE5 for ; Tue, 12 Jan 2016 21:14:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B913820412 for ; Tue, 12 Jan 2016 21:14:32 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 299E5203A9 for ; Tue, 12 Jan 2016 21:14:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 868266E661; Tue, 12 Jan 2016 13:14:29 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by gabe.freedesktop.org (Postfix) with ESMTPS id 90A326E661 for ; Tue, 12 Jan 2016 13:14:27 -0800 (PST) Received: by mail-wm0-f49.google.com with SMTP id f206so270843296wmf.0 for ; Tue, 12 Jan 2016 13:14:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=kKFL8U77zRKAuVLlO4qASt6EkXY8J806rLaBztyhff0=; b=oqwfmsE8phjfMVS/qofNcnUwa4jmlv2ZyI4JrkmKVcrgJ2hT77awLrpyIaA5HWWZ8C hsogfnG4jSECwdTVcqTwuUXy5/5r9sc6SmiiT7jz+PSw/U18K+hDAplXQT8ekYUdk6SC j4yHaxs+xRF/vslk8PQ/XItdt3xsykkzj87TtBF8Pc2gIoZske5jzGJVsvBpRhwQ+3sD wKMkpkUPFtg/O9a4OwtzadvBr4ovNlSjKQ/AK3wjBAVRn7gm5CrQLuf9OVc7V7TKl0G4 3QMYby4ZFh51zIxWsBQEU5hcTnpbOY2gJk2l9PJNoSibZHL/znkSobyEXuFLIBcaBJnu s2QQ== X-Received: by 10.194.184.210 with SMTP id ew18mr126518154wjc.79.1452633265571; Tue, 12 Jan 2016 13:14:25 -0800 (PST) Received: from heaven.amd.com (ip-89-103-110-3.net.upcbroadband.cz. [89.103.110.3]) by smtp.gmail.com with ESMTPSA id w80sm19261075wme.17.2016.01.12.13.14.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Jan 2016 13:14:25 -0800 (PST) From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= 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 Message-Id: <1452633260-26767-1-git-send-email-maraeo@gmail.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Marek Olšák It warns for all "{}" initializers. Well, I want us to use {}. Reviewed-by: David Herrmann Reviewed-by: Ilia Mirkin --- 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 {