From owner-freebsd-audit Thu Aug 22 23:26:44 2002 Delivered-To: freebsd-audit@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E144837B400 for ; Thu, 22 Aug 2002 23:26:41 -0700 (PDT) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id E263043E6E for ; Thu, 22 Aug 2002 23:26:40 -0700 (PDT) (envelope-from keramida@FreeBSD.org) Received: from hades.hell.gr (patr530-a151.otenet.gr [212.205.215.151]) by mailsrv.otenet.gr (8.12.4/8.12.4) with ESMTP id g7N6QcpD016088 for ; Fri, 23 Aug 2002 09:26:39 +0300 (EEST) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.5/8.12.5) with ESMTP id g7N6QbDq014828 for ; Fri, 23 Aug 2002 09:26:37 +0300 (EEST) (envelope-from keramida@FreeBSD.org) Received: (from charon@localhost) by hades.hell.gr (8.12.5/8.12.5/Submit) id g7N6QboS014827 for audit@FreeBSD.ORG; Fri, 23 Aug 2002 09:26:37 +0300 (EEST) (envelope-from keramida@FreeBSD.org) Date: Fri, 23 Aug 2002 09:26:37 +0300 From: Giorgos Keramidas To: audit@FreeBSD.org Subject: Re: a bin/ls warning with WARNS=5 Message-ID: <20020823062636.GA10607@hades.hell.gr> References: <20020823054755.GA3344@hades.hell.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020823054755.GA3344@hades.hell.gr> Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-08-23 08:47 +0000, Giorgos Keramidas 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