[Ocfs2-tools-devel] [PATCH 1/4] build: Set standard gcc warning switches in Config.make.in

Mark Fasheh mark.fasheh at oracle.com
Thu Feb 21 16:08:30 PST 2008


The vast majority of warnings set by individual Makefiles in ocfs2-tools are
redundant. We can just pick a default set of warnings which all programs are
safe to inherit. The change to actually use the CFLAGS from Config.make.in
will come in a later patch.

Signed-off-by: Mark Fasheh <mark.fasheh at oracle.com>
---
 Config.make.in |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/Config.make.in b/Config.make.in
index af829c6..97803a9 100644
--- a/Config.make.in
+++ b/Config.make.in
@@ -43,7 +43,10 @@ CPP = @CPP@
 AR = @AR@
 RANLIB = @RANLIB@
 
-CFLAGS = @CFLAGS@
+WARNINGS = -Wall -Wstrict-prototypes -Wmissing-prototypes \
+	   -Wmissing-declarations
+
+CFLAGS = @CFLAGS@ $(WARNINGS)
 CPPFLAGS = @CPPFLAGS@
 LDFLAGS = @LDFLAGS@ 
 
-- 
1.5.3.6




More information about the Ocfs2-tools-devel mailing list