Date: Fri, 23 Aug 2002 09:26:37 +0300 From: Giorgos Keramidas <keramida@FreeBSD.org> To: audit@FreeBSD.org Subject: Re: a bin/ls warning with WARNS=5 Message-ID: <20020823062636.GA10607@hades.hell.gr> In-Reply-To: <20020823054755.GA3344@hades.hell.gr> References: <20020823054755.GA3344@hades.hell.gr>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-08-23 08:47 +0000, Giorgos Keramidas <keramida@FreeBSD.ORG> 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 majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020823062636.GA10607>