From patchwork Mon Oct 22 21:00:54 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Dickson X-Patchwork-Id: 1628161 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id F2524DF2F6 for ; Mon, 22 Oct 2012 21:37:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755972Ab2JVVhR (ORCPT ); Mon, 22 Oct 2012 17:37:17 -0400 Received: from 183.141.211.66.inaddr.G4.NET ([66.211.141.183]:42400 "EHLO Dobby.4dicksons.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755015Ab2JVVhQ (ORCPT ); Mon, 22 Oct 2012 17:37:16 -0400 X-Greylist: delayed 1919 seconds by postgrey-1.27 at vger.kernel.org; Mon, 22 Oct 2012 17:37:16 EDT Received: from tophat.home.4dicksons.org ([192.168.62.20]) by Dobby.4dicksons.org with esmtp (Exim 4.63) (envelope-from ) id 1TQPBP-00032e-AO for linux-nfs@vger.kernel.org; Mon, 22 Oct 2012 17:05:16 -0400 From: Steve Dickson To: Linux NFS Mailing List Subject: [PATCH] Added more compile warning options Date: Mon, 22 Oct 2012 17:00:54 -0400 Message-Id: <1350939654-25126-1-git-send-email-steved@redhat.com> X-Mailer: git-send-email 1.7.11.7 X-Spam-Score: -2.9 (--) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org To ensure the code compiles cleaner, the following warning options are now set -Wall -Wextra -Wstrict-prototypes -Wstrict-aliasing -Wconversion -Wsign-conversion -Wmissing-prototypes -Wsign-conversion -pedantic -Wmissing-prototypes Signed-off-by: Steve Dickson --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index a174bf4..197823f 100644 --- a/configure.ac +++ b/configure.ac @@ -448,7 +448,11 @@ case $host in ARCHFLAGS="" ;; esac -my_am_cflags="-Wall -Wextra -Wstrict-prototypes $ARCHFLAGS -pipe" +WFLAGS="-Wall -Wextra -Wstrict-prototypes -Wstrict-aliasing \ + -Wconversion -Wsign-conversion -Wmissing-prototypes \ + -Wsign-conversion -pedantic -Wmissing-prototypes" + +my_am_cflags="$WFLAGS $ARCHFLAGS -pipe" AC_SUBST([AM_CFLAGS], ["$my_am_cflags"])