Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: eb73c4c9437816492ef8ce3b40cff9f80c448587
Ticket: 892037ffffffffffffffffffffffffffffffffff
g++ compilation warnings
User & Date: dgp on 2004-02-07 12:10:52
Changes

  1. assignee changed to: "dgp"
  2. closedate changed to: "2004-02-07T05:10:52"
  3. closer changed to: "dgp"
  4. icomment:
    Logged In: YES 
    user_id=80530
    
    
    Sorry, but the Tcl interface
    was CONST-ified as much as
    possible for Tcl 8.4. 
    
    In particular, the second argument
    of Tcl_SetResult() can't change from
    type (char *) to type (CONST char *)
    because when the third argument is
    an actual Tcl_FreeProc, the second
    argument really does have to be
    a writable string to match the
    Tcl_FreeProc signature.
    
    When the third argument is TCL_VOLATILE,
    you are correct that it really is safe
    to pass a (CONST char *) in.  Knowing
    that, you can feel free to add a
    const cast in those function calls to
    silence the compiler warnings.
    
    Better yet might be to just call
    
      Tcl_SetObjResult(interp,
          Tcl_NewStringObj("any string", -1));
    
    and move into the brave world of
    programming to the Tcl 8 interface.  :-)
    
    
    
    
    
  5. login: "dgp"
  6. mimetype: "text/plain"
  7. resolution changed to: "Wont Fix"
  8. status changed to: "Closed"
  9. subsystem changed to: "45. Parsing and Eval"
  10. username: "dgp"