From owner-freebsd-audit Sun Jul 8 14: 5: 4 2001 Delivered-To: freebsd-audit@freebsd.org Received: from coffee.q9media.com (coffee.q9media.com [216.94.229.19]) by hub.freebsd.org (Postfix) with ESMTP id B1B8937B401 for ; Sun, 8 Jul 2001 14:05:01 -0700 (PDT) (envelope-from mike@coffee.q9media.com) Received: (from mike@localhost) by coffee.q9media.com (8.11.2/8.11.2) id f68LK8q17541; Sun, 8 Jul 2001 17:20:08 -0400 (EDT) (envelope-from mike) Date: Sun, 8 Jul 2001 17:20:08 -0400 (EDT) Message-Id: <200107082120.f68LK8q17541@coffee.q9media.com> To: Dag-Erling Smorgrav From: Mike Barcroft Cc: audit@freebsd.org Subject: Re: fetch(1) const/static cleanup 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 Dag-Erling Smorgrav writes: > Could somebody please test the attached patch on an Alpha? It > staticicizes all the functions in fetch(1) except main(), constifies a > bunch of strings, and replaces the CFLAGS spammage with WARNS?=2. cc -O -pipe -mcpu=ev4 -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Werror -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -c fetch.c cc1: warnings being treated as errors fetch.c: In function `stat_display': fetch.c:131: warning: long long int format, off_t arg (arg 3) fetch.c:134: warning: long long int format, off_t arg (arg 3) fetch.c: In function `stat_end': fetch.c:173: warning: long long int format, off_t arg (arg 3) fetch.c: In function `fetch': fetch.c:301: warning: long long int format, off_t arg (arg 2) fetch.c:340: warning: long long int format, off_t arg (arg 3) fetch.c:340: warning: long long int format, off_t arg (arg 4) fetch.c:359: warning: long long int format, off_t arg (arg 3) fetch.c:362: warning: long long int format, off_t arg (arg 3) fetch.c:395: warning: long long int format, off_t arg (arg 3) fetch.c:395: warning: long long int format, off_t arg (arg 4) fetch.c:440: warning: comparison between signed and unsigned fetch.c:512: warning: long long int format, off_t arg (arg 3) fetch.c:512: warning: long long int format, off_t arg (arg 4) *** Error code 1 Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message