Artifacts Associated With Ticket 1548330
Ticket change [3c98ba7d7a] (rid 120940) by mistachkin on 2006-08-29 05:46:48:
- assignee initialized to: "das"
- cmimetype initialized to: "text/plain"
- comment initialized to:
These warnings appear to be legitimate. According to the ANSI C standard, the "%ld" format specifier literally means "long int". The arguments (members of the ByteCode structure) being passed were declared as "int". /home/tcl/tcl8.5/tcl/unix/../generic/tclCompile.c: In function `TclPrintByteCodeObj': /home/tcl/tcl8.5/tcl/unix/../generic/tclCompile.c:2940: warning: long int format, int arg (arg 4) /home/tcl/tcl8.5/tcl/unix/../generic/tclCompile.c:2940: warning: long int format, int arg (arg 6) /home/tcl/tcl8.5/tcl/unix/../generic/tclCompile.c:2940: warning: long int format, int arg (arg 7) /home/tcl/tcl8.5/tcl/unix/../generic/tclCompile.c:2940: warning: long int format, int arg (arg 8) /home/tcl/tcl8.5/tcl/unix/../generic/tclExecute.c: In function `PrintByteCodeInfo': /home/tcl/tcl8.5/tcl/unix/../generic/tclExecute.c:6306: warning: long int format, int arg (arg 4) /home/tcl/tcl8.5/tcl/unix/../generic/tclExecute.c:6306: warning: long int format, int arg (arg 6) /home/tcl/tcl8.5/tcl/unix/../generic/tclExecute.c:6306: warning: long int format, int arg (arg 7) /home/tcl/tcl8.5/tcl/unix/../generic/tclExecute.c:6306: warning: long int format, int arg (arg 8) /home/tcl/tcl8.5/tcl/unix/../generic/tclExecute.c: In function `EvalStatsCmd': /home/tcl/tcl8.5/tcl/unix/../generic/tclExecute.c:6856: warning: long int format, int arg (arg 3) /home/tcl/tcl8.5/tcl/unix/../generic/tclExecute.c:6856: warning: long int format, int arg (arg 4) /home/tcl/tcl8.5/tcl/unix/../generic/tclExecute.c:6877: warning: long int format, int arg (arg 3) /home/tcl/tcl8.5/tcl/unix/../generic/tclExecute.c:6877: warning: long int format, int arg (arg 4) /home/tcl/tcl8.5/tcl/unix/../generic/tclExecute.c:6877: warning: long int format, int arg (arg 5) /home/tcl/tcl8.5/tcl/unix/../generic/tclExecute.c:6877: warning: long int format, int arg (arg 6) /home/tcl/tcl8.5/tcl/unix/../generic/tclExecute.c:6971: warning: long int format, int arg (arg 3) /home/tcl/tcl8.5/tcl/unix/../generic/tclExecute.c:6971: warning: long int format, int arg (arg 4) /home/tcl/tcl8.5/tcl/unix/../generic/tclExecute.c:6971: warning: long int format, int arg (arg 5) /home/tcl/tcl8.5/tcl/unix/../generic/tclExecute.c:6971: warning: long int format, int arg (arg 6) /home/tcl/tcl8.5/tcl/unix/../generic/tclExecute.c:6984: warning: long int format, int arg (arg 3) /home/tcl/tcl8.5/tcl/unix/../generic/tclExecute.c:6984: warning: long int format, int arg (arg 4) /home/tcl/tcl8.5/tcl/unix/../generic/tclExecute.c:6984: warning: long int format, int arg (arg 5)
- foundin initialized to: "obsolete: 8.5a5"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "mistachkin"
- subsystem initialized to: "52. Portability Support"
- title initialized to:
format string warnings on FreeBSD 4-STABLE with gcc 2.95.4
- type initialized to: "Bug"
Ticket change [be158a56fc] (rid 102017) by das on 2006-08-29 13:29:12:
- closedate changed to: "2006-08-29T06:29:12"
- closer changed to: "das"
- icomment:
Logged In: YES user_id=90580 what a pain... gcc4 on Darwin gives the opposite warning about needing %ld rather than %d, because the ints you mention are multiplied by a sizeof, which causes promotion to an unsigned long (as sizeof returns a size_t). Maybe size_t is an int on your platform, or gcc2 is buggy about this? Now added casts to (unsigned long) to make both compilers happy
- login: "das"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "das"