Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jul 1997 15:33:20 +0930 (CST)
From:      Michael Smith <msmith@atrad.adelaide.edu.au>
To:        mrcpu@cdsnet.net (Jaye Mathisen)
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Library compile warning.
Message-ID:  <199707250603.PAA20443@genesis.atrad.adelaide.edu.au>
In-Reply-To: <Pine.NEB.3.95.970724162739.19992M-100000@mail.cdsnet.net> from Jaye Mathisen at "Jul 24, 97 04:28:27 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
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 <machine/limits.h> :

/* 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  [[



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