From patchwork Mon Feb 23 13:57:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 5865631 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 5EA34BF440 for ; Mon, 23 Feb 2015 13:55:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 842C820645 for ; Mon, 23 Feb 2015 13:54:59 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 9B2EE20569 for ; Mon, 23 Feb 2015 13:54:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E5C7F6E3F5; Mon, 23 Feb 2015 05:54:57 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by gabe.freedesktop.org (Postfix) with ESMTP id 5507B6E3F1 for ; Mon, 23 Feb 2015 05:54:54 -0800 (PST) Received: by mail-wi0-f178.google.com with SMTP id em10so17023281wid.5 for ; Mon, 23 Feb 2015 05:54:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=QmqUCwg+8RVnYPVXkCsqJvV+nnXz/qwLvjjP9hCPBsw=; b=FIdkB38WrIliSPWf49JPMTTMOXLmrci8ojiAa8Lib1X69nipCeyvN9JzTqOswS3sCv kKaPn9cm2LHoXjw7ifQZxZxYddGmSEYfKoli2+imQaPMLGN9j4oD2nqv6XThzFJC25dJ IMbagbCUj+H/VDD4lh7yMbWuefbDFzK3Ob6s1rlSfwKpE3PCDOpvydPRFAc4d2uRIdUa lKA4H+0TyI/FmYA1a1c5stTLzbhGX9P8gh1JYX0hpeC0KWZK7n4/8949K6Br+LZEMAiT rBFqK11xAp14lXHjGpoEqAWJ6u9EEhzL663EtSssN+TI+vYxgufh11Q1LIyqRg0f/wgo WLAw== X-Received: by 10.194.173.138 with SMTP id bk10mr21848013wjc.112.1424699693725; Mon, 23 Feb 2015 05:54:53 -0800 (PST) Received: from arch-x220.localdomain (cpc12-croy20-2-0-cust52.croy.cable.virginm.net. [82.44.54.53]) by mx.google.com with ESMTPSA id ev7sm55689045wjb.47.2015.02.23.05.54.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Feb 2015 05:54:53 -0800 (PST) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 4/4] autotools: add WARN_CFLAGS to all targets Date: Mon, 23 Feb 2015 13:57:42 +0000 Message-Id: <1424699862-4077-5-git-send-email-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.3.0 In-Reply-To: <1424699862-4077-1-git-send-email-emil.l.velikov@gmail.com> References: <1424699862-4077-1-git-send-email-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-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 ... minus test/ttmtest. The latter is not really hooked up with the actual build. This will give us 66 warnings on a distribution build of which - 12 -Wunused-variable - 11 -Wunused-function - 19 -Wmissing-prototypes and a few -Wswitch-enum, -Wtype-limits etc. Adding the CFLAGS gives some exposure to these so that we can fix them. Signed-off-by: Emil Velikov --- Makefile.am | 1 + tests/Makefile.am | 3 ++- tests/exynos/Makefile.am | 1 + tests/kmstest/Makefile.am | 1 + tests/modeprint/Makefile.am | 1 + tests/proptest/Makefile.am | 1 + tests/radeon/Makefile.am | 1 + tests/tegra/Makefile.am | 2 +- tests/vbltest/Makefile.am | 2 ++ 9 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 062feb4..9514cc5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -82,6 +82,7 @@ libdrm_la_LIBADD = @CLOCK_LIB@ libdrm_la_CPPFLAGS = -I$(top_srcdir)/include/drm AM_CFLAGS = \ + $(WARN_CFLAGS) \ $(VALGRIND_CFLAGS) libdrm_la_SOURCES = $(LIBDRM_FILES) diff --git a/tests/Makefile.am b/tests/Makefile.am index 37b8d3a..f989d8e 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,6 +1,7 @@ NULL:=# -AM_CPPFLAGS = \ +AM_CFLAGS = \ + $(WARN_CFLAGS)\ -I $(top_srcdir)/include/drm \ -I $(top_srcdir) diff --git a/tests/exynos/Makefile.am b/tests/exynos/Makefile.am index 92de4e4..b21d016 100644 --- a/tests/exynos/Makefile.am +++ b/tests/exynos/Makefile.am @@ -1,4 +1,5 @@ AM_CFLAGS = \ + $(WARN_CFLAGS)\ -I $(top_srcdir)/include/drm \ -I $(top_srcdir)/libkms/ \ -I $(top_srcdir)/exynos \ diff --git a/tests/kmstest/Makefile.am b/tests/kmstest/Makefile.am index 7903a26..fd21e61 100644 --- a/tests/kmstest/Makefile.am +++ b/tests/kmstest/Makefile.am @@ -1,4 +1,5 @@ AM_CFLAGS = \ + $(WARN_CFLAGS)\ -I$(top_srcdir)/include/drm \ -I$(top_srcdir)/libkms/ \ -I$(top_srcdir) diff --git a/tests/modeprint/Makefile.am b/tests/modeprint/Makefile.am index 6420ef3..895805f 100644 --- a/tests/modeprint/Makefile.am +++ b/tests/modeprint/Makefile.am @@ -1,4 +1,5 @@ AM_CFLAGS = \ + $(WARN_CFLAGS)\ -I$(top_srcdir)/include/drm \ -I$(top_srcdir) diff --git a/tests/proptest/Makefile.am b/tests/proptest/Makefile.am index f81a3c0..48a84c1 100644 --- a/tests/proptest/Makefile.am +++ b/tests/proptest/Makefile.am @@ -1,4 +1,5 @@ AM_CFLAGS = \ + $(WARN_CFLAGS)\ -I$(top_srcdir)/include/drm \ -I$(top_srcdir) diff --git a/tests/radeon/Makefile.am b/tests/radeon/Makefile.am index 1775669..d18620d 100644 --- a/tests/radeon/Makefile.am +++ b/tests/radeon/Makefile.am @@ -1,4 +1,5 @@ AM_CFLAGS = \ + $(WARN_CFLAGS)\ -I $(top_srcdir)/include/drm \ -I $(top_srcdir) diff --git a/tests/tegra/Makefile.am b/tests/tegra/Makefile.am index ca63d92..8e625c8 100644 --- a/tests/tegra/Makefile.am +++ b/tests/tegra/Makefile.am @@ -3,7 +3,7 @@ AM_CPPFLAGS = \ -I$(top_srcdir)/tegra \ -I$(top_srcdir) -AM_CFLAGS = -Wall -Werror +AM_CFLAGS = $(WARN_CFLAGS) LDADD = \ ../../tegra/libdrm_tegra.la \ diff --git a/tests/vbltest/Makefile.am b/tests/vbltest/Makefile.am index 34a35e7..4d87887 100644 --- a/tests/vbltest/Makefile.am +++ b/tests/vbltest/Makefile.am @@ -1,6 +1,8 @@ AM_CFLAGS = \ + $(WARN_CFLAGS)\ -I$(top_srcdir)/include/drm \ -I$(top_srcdir) + if HAVE_INSTALL_TESTS bin_PROGRAMS = \ vbltest