Re: parse-datetime.y reports integer overflow when compiled with gcc 5.5.0

2021-01-08 Thread Paul Eggert
On 1/8/21 1:49 PM, Bruno Haible wrote: So, the problem is a signed-integer overflow of constants in a dead (unreachable) code branch. Yes, I get many warnings like that in Oracle Developer Studio too, with some of the Gnulib tests. Either ignore the warnings, or don't use -Woverflow, or (as

Re: parse-datetime.y reports integer overflow when compiled with gcc 5.5.0

2021-01-08 Thread Bruno Haible
Sergey Poznyakoff wrote: > With recent gnulib (v0.1-4336-gbdae9a5), attempting to compile > parse-datetime.c fails with: > > $ make -k parse-datetime.o V=1 > gcc -DHAVE_CONFIG_H -I. -I.. -Wall -ggdb -MT parse-datetime.o -MD -MP -MF > .deps/parse-datetime.Tpo -c -o parse-datetime.o

parse-datetime.y reports integer overflow when compiled with gcc 5.5.0

2021-01-08 Thread Sergey Poznyakoff
Hello, With recent gnulib (v0.1-4336-gbdae9a5), attempting to compile parse-datetime.c fails with: $ make -k parse-datetime.o V=1 gcc -DHAVE_CONFIG_H -I. -I.. -Wall -ggdb -MT parse-datetime.o -MD -MP -MF .deps/parse-datetime.Tpo -c -o parse-datetime.o parse-datetime.c In file included from