Re: a bin/ls warning with WARNS=5

Giorgos Keramidas <[email protected]> Fri, 23 Aug 2002 09:26:37 +0300
Newsgroups gmane.os.freebsd.devel.audit
Message-ID <[email protected]>
On 2002-08-23 08:47 +0000, Giorgos Keramidas <[email protected]> wrote:
> WFORMAT=0 remains since I don't know how to fix the format warning :-/

A better fix for the WFORMAT case would probably be:

%%%
Index: Makefile
===================================================================
RCS file: /home/ncvs/src/bin/ls/Makefile,v
retrieving revision 1.23
diff -u -r1.23 Makefile
--- Makefile	4 Feb 2002 03:06:50 -0000	1.23
+++ Makefile	23 Aug 2002 06:20:03 -0000
@@ -3,8 +3,9 @@
 
 PROG=	ls
 SRCS=	cmp.c lomac.c ls.c print.c util.c
-NO_WERROR=1
-WFORMAT=0
+WARNS?=	5
+WFORMAT=1
+CWARNFLAGS=	-Wno-format-nonliteral
 DPADD=	${LIBM}
 LDADD=	-lm
 
%%%

This way, the non-literal format string warning is turned off, but we
don't lose the WFORMAT stuff in its entirety.


To Unsubscribe: send mail to [email protected]
with "unsubscribe freebsd-audit" in the body of the message