From owner-freebsd-current Sun Jun 1 14:39:39 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id OAA06161 for current-outgoing; Sun, 1 Jun 1997 14:39:39 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id OAA06141 for ; Sun, 1 Jun 1997 14:39:19 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id XAA16616 for freebsd-current@FreeBSD.ORG; Sun, 1 Jun 1997 23:39:09 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id WAA06871; Sun, 1 Jun 1997 22:31:24 +0200 (MET DST) Message-ID: <19970601223118.VX29490@uriah.heep.sax.de> Date: Sun, 1 Jun 1997 22:31:18 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-current@FreeBSD.ORG Subject: Re: ucd-snmp-3.1.3 doesn't like FreeBSD3? References: <199706010818.BAA14119@rah.star-gate.com> <17191.865192920@orion.webspan.net> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <17191.865192920@orion.webspan.net>; from Gary Palmer on Jun 1, 1997 15:22:00 -0400 Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Gary Palmer wrote: > > cc -I.. -O2 -pipe -Dfreebsd3 -c md5.c > > md5.c: In function `MDblock': > > md5.c:157: warning: decimal constant is so large that it is unsigned > > md5.c:158: warning: decimal constant is so large that it is unsigned > Those warnings have been there since day one. I have no idea if they > mean anything or not They simply mean someone defined a constant that would have the sign bit set, but it wasn't declared to be a negative constant. You could supposedly get around this by appending a `U' to the constant (thus indicating to the compiler that it is really meant to be unsigned). Seems gcc does already believe into the good intentions of the programmer if he used a hexadecimal constant: j@uriah 405% cat > foo.c int main(void) { unsigned a, b; a = 0xd76aa478; b = 3614090360; return 0; } ^D j@uriah 406% cc -Wall foo.c foo.c: In function `main': foo.c:7: warning: decimal constant is so large that it is unsigned Both values above are identical. Appending the `U' silences the warning, of course. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)