Skip to content
Tcl Source Code History Of Ticket 1548330fffffffffffffffffffffffffffffffff
Login

History Of Ticket 1548330fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1548330fffffffffffffffffffffffffffffffff

  1. Ticket change [3c98ba7d7a] (rid 120940) by mistachkin on 2006-08-29 05:46:48:

    1. assignee initialized to: "das"
    2. cmimetype initialized to: "text/plain"
    3. 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)
      
      
    4. foundin initialized to: "obsolete: 8.5a5"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "mistachkin"
    10. subsystem initialized to: "52. Portability Support"
    11. title initialized to:
      format string warnings on FreeBSD 4-STABLE with gcc 2.95.4
      
    12. type initialized to: "Bug"
  2. Ticket change [be158a56fc] (rid 102017) by das on 2006-08-29 13:29:12:

    1. closedate changed to: "2006-08-29T06:29:12"
    2. closer changed to: "das"
    3. 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
      
      
    4. login: "das"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "das"