blizzard of compiler warnings
Hal Murray
hmurray at megapathdsl.net
Tue Dec 13 23:05:38 UTC 2016
This is on a 32 bit Fedora.
[142/166] Compiling tests/libntp/vi64ops.c
In file included from ../../include/ntp_syslog.h:11:0,
from ../../include/ntp_stdlib.h:17,
from ../../tests/libntp/vi64ops.c:2:
../../tests/libntp/vi64ops.c: In function âTEST_vi64ops_HiLoVUI64uh_â:
../../include/ntp_types.h:55:52: warning: left shift count >= width of type
[-Wshift-count-overflow]
#define SET32FIRST(n,v) (n) = ((((v) & LAST32MASK) << 32) | ((n) &
LAST32MASK))
^
../../include/ntp_types.h:61:27: note: in expansion of macro âSET32FIRSTâ
#define settime64hiu(n,v) SET32FIRST(n,v)
^~~~~~~~~~
../../tests/libntp/vi64ops.c:16:2: note: in expansion of macro
âsettime64hiuâ
settime64hiu(exp, 0x01234567);
^~~~~~~~~~~~
../../tests/libntp/vi64ops.c: In function âTEST_vi64ops_HiLoVUI64ul_â:
../../include/ntp_types.h:55:52: warning: left shift count >= width of type
[-Wshift-count-overflow]
#define SET32FIRST(n,v) (n) = ((((v) & LAST32MASK) << 32) | ((n) &
LAST32MASK))
^
../../include/ntp_types.h:61:27: note: in expansion of macro âSET32FIRSTâ
#define settime64hiu(n,v) SET32FIRST(n,v)
^~~~~~~~~~
../../tests/libntp/vi64ops.c:24:2: note: in expansion of macro
âsettime64hiuâ
settime64hiu(exp, 0x01234567);
^~~~~~~~~~~~
--
These are my opinions. I hate spam.
More information about the devel
mailing list