GCC warnings on x86-64
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
rohc | Status tracked in Rohc-main | |||||
1.2.x |
Fix Released
|
Low
|
Didier Barvaux | |||
1.3.x |
Fix Released
|
Low
|
Didier Barvaux | |||
Rohc-main |
Fix Released
|
Low
|
Didier Barvaux |
Bug Description
On a x86-64 system, GCC 4.3.4 issues the following warnings while building version 1.3.0 of the ROHC library:
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/common -I../../src/comp -g -Wall -Wstrict-prototypes -g -O2 -Werror -MT d_generic.lo -MD -MP -MF .deps/d_generic.Tpo -c -o d_generic.lo d_generic.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/common -I../../src/comp -g -Wall -Wstrict-prototypes -g -O2 -Werror -MT d_generic.lo -MD -MP -MF .deps/d_generic.Tpo -c d_generic.c -fPIC -DPIC -o .libs/d_generic.o
cc1: warnings being treated as errors
d_generic.c: In function ‘d_generic_
d_generic.c:1772: erreur: format ‘%d’ expects type ‘int’, but argument 7 has type ‘long int’
d_generic.c: In function ‘decode_uo0’:
d_generic.c:2784: erreur: format ‘%d’ expects type ‘int’, but argument 7 has type ‘long int’
d_generic.c: In function ‘decode_uo1’:
d_generic.c:3032: erreur: format ‘%d’ expects type ‘int’, but argument 7 has type ‘long int’
d_generic.c: In function ‘decode_uor2’:
d_generic.c:3331: erreur: format ‘%d’ expects type ‘int’, but argument 7 has type ‘long int’
d_generic.c: In function ‘decode_irdyn’:
d_generic.c:3452: erreur: format ‘%d’ expects type ‘int’, but argument 7 has type ‘long int’
d_generic.c: In function ‘do_decode_
d_generic.c:3667: erreur: format ‘%d’ expects type ‘int’, but argument 6 has type ‘long int’
d_generic.c: In function ‘do_decode_uor2’:
d_generic.c:4279: erreur: format ‘%d’ expects type ‘int’, but argument 6 has type ‘long int’
make[3]: *** [d_generic.lo] Erreur 1
make[3]: quittant le répertoire « /home/didier/
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « /home/didier/
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/didier/
make: *** [all] Erreur 2
Confirmed for 1.3.0.