From patchwork Sun Jan 22 18:34:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 9531425 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 37559601D4 for ; Sun, 22 Jan 2017 18:37:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 29B1527CF9 for ; Sun, 22 Jan 2017 18:37:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1EC9D27F9F; Sun, 22 Jan 2017 18:37:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DF5D327CF9 for ; Sun, 22 Jan 2017 18:37:13 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A1AEB6E345; Sun, 22 Jan 2017 18:37:12 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id D449D6E346 for ; Sun, 22 Jan 2017 18:37:08 +0000 (UTC) Received: by mail-wm0-x242.google.com with SMTP id r126so20848873wmr.3 for ; Sun, 22 Jan 2017 10:37:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=sPCOm7ORRE1RRBgj+IZxO5NTYVp2DrvFhQhAsTGRTHk=; b=t+OTZqC8fLkVVSg+lLfz/XfQR8rB2pG+H6K42NqKwcU02fzcSOSuMshpD3jlIXUmjp 2rx5zSentlRdN/MrIoVuYSE5YavvbmiR9Uu280veyEoTyA+pHoi9h2G8kE2Mn21rT9PD I811wqN1fN5+toc3MVX9b9cJwPTOEmwUZygGGhUVjvkqCoVu6aCed5gzL69wm6dd+sFr HPvf7SQv6LUquiwCQ0Q6SARMhuxPQDiy1QsRfptOOnSzK+HHB/N+d1eoZ8HrZ4z/G2oz yOHGdyUgoYMSgbBx81f65soPZGM+Mlb2+K86T+GvC/6JXT0lMODpzkF7tLsddmg16O9j 1TZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=sPCOm7ORRE1RRBgj+IZxO5NTYVp2DrvFhQhAsTGRTHk=; b=ftPgwLeheFaAyz//9k+VG3fN7Zo5D0W8EDYQH9d8xEfH1Wx3Bkvqa08vIPse2sZxp5 VlEKusXhHeyPYTiiiiRhrTABOAEDU7Bub5FbxSc9zz6j9u8EzFYshbsdGhOQfRyE9VS5 Vw18eKGSC+ql/tIOJNqqxH7jZ4eqGpQv3mPkf5UZSk0P07pYJHsMnBRXZSVhKVEj2sid hDuFx7De75sAuBV4+sxYtt8jTeJjA80QcyqsKmCa7WC4Csp3iD9PmJm6lWdnWc8byps9 oECX31fRihts9yDlD7DM8fbrKu+CKa9U26tFm/CHhNVr69oCb9yW9/5iL0XNIKD8cIjq d96w== X-Gm-Message-State: AIkVDXKaMfh7WG5AKfCtpEvHoslrbbeFG4tB8IVZAiRddJOvPAcuTWLOHy28WLe4CWrBaQ== X-Received: by 10.28.230.91 with SMTP id d88mr10223634wmh.129.1485110227251; Sun, 22 Jan 2017 10:37:07 -0800 (PST) Received: from localhost.localdomain (cpc91186-cmbg18-2-0-cust67.5-4.cable.virginm.net. [80.1.50.68]) by smtp.gmail.com with ESMTPSA id c202sm17099824wmd.10.2017.01.22.10.37.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Jan 2017 10:37:06 -0800 (PST) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 5/5] android: silence ~550 warnings Date: Sun, 22 Jan 2017 18:34:43 +0000 Message-Id: <20170122183443.11963-5-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170122183443.11963-1-emil.l.velikov@gmail.com> References: <20170122183443.11963-1-emil.l.velikov@gmail.com> Cc: emil.l.velikov@gmail.com 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: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Analogous to the autoconf build add the following to the build -Wno-unused-parameter -Wno-missing-field-initializers Cc: Chih-Wei Huang Cc: Rob Herring Signed-off-by: Emil Velikov Reviewed-by: Rob Herring --- According to Rob's jenkins build there's still some 26 libdrm warnings libdrm most of which duplicates - can we fix those properly ? There might be a lot more since it builds only libdrm and the freedreno, intel and radeon DSO. Rob, with this patch/series the total warnings reported drops by half ;-) --- Android.common.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Android.common.mk b/Android.common.mk index 71f14ec3..f57b8d37 100644 --- a/Android.common.mk +++ b/Android.common.mk @@ -3,6 +3,10 @@ LOCAL_CFLAGS += \ -DHAVE_VISIBILITY=1 \ -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1 +LOCAL_CFLAGS += \ + -Wno-unused-parameter \ + -Wno-missing-field-initializers + # Quiet down the build system and remove any .h files from the sources LOCAL_SRC_FILES := $(patsubst %.h, , $(LOCAL_SRC_FILES)) LOCAL_EXPORT_C_INCLUDE_DIRS += $(LOCAL_PATH)