From owner-freebsd-hackers Thu Jul 24 23:03:37 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA16219 for hackers-outgoing; Thu, 24 Jul 1997 23:03:37 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA16214 for ; Thu, 24 Jul 1997 23:03:33 -0700 (PDT) Received: (from msmith@localhost) by genesis.atrad.adelaide.edu.au (8.8.5/8.7.3) id PAA20443; Fri, 25 Jul 1997 15:33:20 +0930 (CST) From: Michael Smith Message-Id: <199707250603.PAA20443@genesis.atrad.adelaide.edu.au> Subject: Re: Library compile warning. In-Reply-To: from Jaye Mathisen at "Jul 24, 97 04:28:27 pm" To: mrcpu@cdsnet.net (Jaye Mathisen) Date: Fri, 25 Jul 1997 15:33:20 +0930 (CST) Cc: hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Jaye Mathisen stands accused of saying: > > > Don't recall seeing too many errors in libc, and this one happened to > jump out at me during a current make world on 2.2-stable: > > cc -fpic -DPIC -O2 -m486 -pipe -DLIBC_RCS -DSYSLIBC_RCS > -D__DBINTERFACE_PRIVATE -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libc/locale > -DYP -c /usr/src/lib/libc/../libc/stdlib/strtoq.c -o strtoq.so > /usr/src/lib/libc/../libc/stdlib/strtoq.c: In function `strtoq': > /usr/src/lib/libc/../libc/stdlib/strtoq.c:108: warning: integer overflow > in expression 108 if (any < 0) { 109 acc = UQUAD_MAX; 110 errno = ERANGE; 111 } else if (neg) Then in : /* GCC requires that quad constants be written as expressions. */ #define UQUAD_MAX ((u_quad_t)0-1) /* max value for a uquad_t */ Hmm, looks interesting 8) > Just seems like libc shouldn't have any warnings. Probably aren't enough compiler options turned on yet 8) -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[