[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compile warning noticed in 3.80rc2
From: |
Art Haas |
Subject: |
Compile warning noticed in 3.80rc2 |
Date: |
Fri, 13 Sep 2002 10:45:07 -0500 |
User-agent: |
Mutt/1.4i |
Hi.
I saw the following warning when building the test release
found on alpha.gnu.org ...
source='../hash.c' object='hash.o' libtool=no \
depfile='.deps/hash.Po' tmpdepfile='.deps/hash.TPo' \
depmode=gcc3 /bin/sh ../config/depcomp \
gcc -DLOCALEDIR=\"/opt/gnu/share/locale\" -DLIBDIR=\"/opt/gnu/lib\"
-DINCLUDEDIR=\"/opt/gnu/include\" -DHAVE_CONFIG_H -I. -I.. -I.
-DNDEBUG -O2 -march=i586 -c `test -f '../hash.c' || echo
'../'`../hash.c
../hash.c: In function `round_up_2':
../hash.c:362: warning: right shift count >= width of type
The lines in question ...
static unsigned long
round_up_2 (n)
unsigned long n;
{
n |= (n >> 1);
n |= (n >> 2);
n |= (n >> 4);
n |= (n >> 8);
n |= (n >> 16);
n |= (n >> 32); <== This one
return n + 1;
}
I'm building on i586-pc-linux-gnu, using gcc-3.2.1 (cvs).
The newly built make passed all the tests.
Also, as the configure template requires autoconf-2.53, why
not rename "configure.in" to "configure.ac"?
Thanks for the work on make.
Art Haas
--
They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety.
-- Benjamin Franklin, Historical Review of Pennsylvania, 1759
- Compile warning noticed in 3.80rc2,
Art Haas <=