Linux NFS development
 help / color / mirror / Atom feed
From: Steve Dickson <steved@redhat.com>
To: Linux NFS Mailing List <linux-nfs@vger.kernel.org>
Subject: [PATCH] Added more compile warning options
Date: Mon, 22 Oct 2012 17:00:54 -0400	[thread overview]
Message-ID: <1350939654-25126-1-git-send-email-steved@redhat.com> (raw)

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 <steved@redhat.com>
---
 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"])
 
-- 
1.7.11.7


             reply	other threads:[~2012-10-22 21:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-22 21:00 Steve Dickson [this message]
2012-10-22 21:43 ` [PATCH] Added more compile warning options Jim Rees
2012-10-23 14:45   ` Steve Dickson

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=1350939654-25126-1-git-send-email-steved@redhat.com \
    --to=steved@redhat.com \
    --cc=linux-nfs@vger.kernel.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