#5 1.5 gcc 4.6 compile warnings

open
nobody
None
5
2012-03-11
2012-03-11
Jari Aalto
No

FYI, following messages are displayed during compilation:

gcc -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -pedantic apng2gif.c -o apng2gif -lz
apng2gif.c: In function 'SaveAGIF':
apng2gif.c:1602:3: warning: initializer element is not computable at load time [enabled by default]
apng2gif.c:1602:3: warning: initializer element is not computable at load time [enabled by default]
apng2gif.c:1602:3: warning: initializer element is not computable at load time [enabled by default]
apng2gif.c:1602:3: warning: initializer element is not computable at load time [enabled by default]
apng2gif.c:1602:3: warning: initializer element is not computable at load time [enabled by default]
apng2gif.c:1603:3: warning: initializer element is not computable at load time [enabled by default]
apng2gif.c:1603:3: warning: initializer element is not computable at load time [enabled by default]
apng2gif.c:1604:3: warning: initializer element is not computable at load time [enabled by default]
apng2gif.c:1605:3: warning: initializer element is not computable at load time [enabled by default]
apng2gif.c:1605:3: warning: initializer element is not computable at load time [enabled by default]
apng2gif.c:1605:3: warning: initializer element is not computable at load time [enabled by default]
apng2gif.c:1605:3: warning: initializer element is not computable at load time [enabled by default]
make[1]: Leaving directory `/usr/src/debian/deb/apng2gif/apng2gif.git'
dh_auto_test

Discussion

  • Max Stepin

    Max Stepin - 2012-03-11

    I would recommend to add this gcc flag, the warnings will disappear:
    -std=c99

     
  • Nobody/Anonymous

    Hola! I've been reading your web site for a while now and finally got the bravery to go ahead and give you a shout out from Humble Texas! Just wanted to tell you keep up the excellent job!
    north face osito http://lknorthface.webeden.net/login

     
  • Jari Aalto

    Jari Aalto - 2012-10-20

    > I would recommend to add this gcc flag, the warnings will disappear:
    > -std=c99

    Please add this to the Makefile

    Thanks.