From owner-freebsd-current Sat Jun 22 3:23:18 2002 Delivered-To: freebsd-current@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 221B937B401; Sat, 22 Jun 2002 03:23:12 -0700 (PDT) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id UAA00573; Sat, 22 Jun 2002 20:23:09 +1000 Date: Sat, 22 Jun 2002 20:28:08 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: "David O'Brien" Cc: ir@hotbox.ru, Subject: Re: error in ncurses in 'make buildworld' In-Reply-To: <20020621134301.F68827@dragon.nuxi.com> Message-ID: <20020622202641.C7645-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 21 Jun 2002, David O'Brien wrote: > On Fri, Jun 21, 2002 at 11:11:39AM +0400, Igor Roboul wrote: > > igorr@sysadm~> gcc -Wall qq.c > > qq.c: In function `main': > > qq.c:16: warning: float format, double arg (arg 3) <--- I have expected this > > igorr@sysadm~> ./a.out 123 > > 123.000000 > > 0.124861 > > 0.0<4861 <--- Pay attention > > 123 > > I don't get the same results with a system built today. > > $ cc -v > ..snip.. > gcc version 3.1 [FreeBSD] 20020509 (prerelease) > $ cc -Wall qq.c The program and strtod.c (not dtoa.c like I said in previous mail) must be compiled with gcc -O2 to cause problems. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message