[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#361925: FTBFS with GCC 4.2: the address of 'formatstr', will always evaluate as 'true'



Package: lprng
Version: 3.8.28-4

Your package fails to build with GCC 4.2.  Version 4.2 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning.  The bug below is in your package
and not because I'm using a snapshot of the compiler so please take a
look at it.  You can reproduce this with the gcc-snapshot package.


> Automatic build of lprng_3.8.28-4 on em64t by sbuild/amd64 1.112
...
> gcc -I.. -I. -I./include -I./common -D_FILE_OFFSET_BITS=64 -I/usr/include -g -W -Wall -Werror -Wno-unused -g -O2 -D_FILE_OFFSET_BITS=64 -g -W -Wall -Werror -Wno-unused -DHAVE_CONFIG_H -c ./common/plp_snprintf.c -o plp_snprintf.o
> cc1: warnings being treated as errors
> ./common/plp_snprintf.c: In function 'fmtquad':
> ./common/plp_snprintf.c:936: warning: the address of 'convert', will always evaluate as 'true'
> ./common/plp_snprintf.c: In function 'fmtdouble':
> ./common/plp_snprintf.c:994: warning: the address of 'formatstr', will always evaluate as 'true'
> ./common/plp_snprintf.c:997: warning: the address of 'formatstr', will always evaluate as 'true'
> ./common/plp_snprintf.c:1000: warning: the address of 'formatstr', will always evaluate as 'true'
> make[2]: *** [plp_snprintf.lo] Error 1

-- 
Martin Michlmayr
http://www.cyrius.com/




Reply to: