Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jul 2002 08:22:51 -0700
From:      "David O'Brien" <obrien@FreeBSD.org>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.bin/fetch Makefile
Message-ID:  <20020729152251.GC25260@dragon.nuxi.com>
In-Reply-To: <xzpsn23hrff.fsf@flood.ping.uio.no>
References:  <200207282109.g6SL9vOC093446@freefall.freebsd.org> <xzpit2zk13f.fsf@flood.ping.uio.no> <20020729030411.GD86944@dragon.nuxi.com> <xzpsn23hrff.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 29, 2002 at 10:25:08AM +0200, Dag-Erling Smorgrav wrote:
> Any warning at all caused by code which is valid C99 but not valid C89
> is IMHO incorrect.
> 
> des@des /usr/src/usr.bin/fetch% make WARNS=6
> cc -O -pipe -march=k6  -g -Werror -Wall -Wno-format-y2k -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wuninitialized -ansi
                                               ^^^^^
                            get sufficent committers to agree to change
                            this to -std=c99 (-std=gnu99).  -ansi is the
                            same as -std=iso9899:1990


...
> cc1: warnings being treated as errors
> /usr/src/usr.bin/fetch/fetch.c: In function `stat_display':
> /usr/src/usr.bin/fetch/fetch.c:146: warning: ISO C89 does not support `long long'
> /usr/src/usr.bin/fetch/fetch.c:146: warning: ISO C89 does not support the `ll' printf length modifier

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020729152251.GC25260>