From c8c071a07319939dfd7ae2ff1dedec644d750deb Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Thu, 11 Jan 2001 16:08:23 +0000 Subject: ChangeLog, e2image.c, mke2fs.c, mklost+found.c, tune2fs.c, util.c, uuidgen.c: e2image.c, mke2fs.c, mklost+found.c, tune2fs.c, util.c, uuidgen.c: Fix gcc -Wall complaints, including one bug in tune2fs caused by a block automatic shadowing version of the variable we really wanted to use, which broke the logic testing to see if the filesystem was mounted. ChangeLog, MCONFIG.in: (gcc-wall-new): Added new target which forgoes the make clean so we only check the newly modified .c files. --- MCONFIG.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'MCONFIG.in') diff --git a/MCONFIG.in b/MCONFIG.in index 0e3d494f..e4ad5780 100644 --- a/MCONFIG.in +++ b/MCONFIG.in @@ -115,9 +115,12 @@ WFLAGS= -ansi -D_POSIX_SOURCE -pedantic \ -Wstrict-prototypes -Wmissing-prototypes \ -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow +gcc-wall-new: + (make USE_WFLAGS="$(WFLAGS)" > /dev/null) 2>&1 | sed -f $(top_srcdir)/util/gcc-wall-cleanup + gcc-wall: make clean > /dev/null - (make USE_WFLAGS="$(WFLAGS)" > /dev/null) 2>&1 | sed -f $(top_srcdir)/util/gcc-wall-cleanup + make gcc-wall-new # # Installation user and groups -- cgit v1.2.3