Skip to content
Tcl Source Code History Of Ticket 217999ffffffffff
Login

History Of Ticket 217999ffffffffff

Artifacts Associated With Ticket 217999ffffffffff

  1. Ticket change [826e68ecda] (rid 117238) by nobody on 2000-10-26 00:51:50:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 679 Bug
      Version: 8.0p2
      SubmitDate: '1998-09-23'
      LastModified: '1999-09-15'
      Severity: LOW
      Status: Closed
      Submitter: welch
      ChangedBy: hobbs
      OS: Linux
      OSVersion: NA
      Machine: NA
      FixedDate: '2000-10-25'
      FixedInVersion: NA
      ClosedDate: '1999-09-15'
      
      
      The function prototypes in /usr/include/tcl.h have a large number of "char*"
      definitions that should really be "char const*".  Without this correct
      constness, compiling will generate a large number of errors.  For example:
      
      db/dbobject.cpp:1476: warning: converting `const char *' to `char *' is a contravariance violation
      db/dbobject.cpp:1476: warning: passing `const char *' as argument 2 of `Tcl_GetVar(Tcl_Interp *, char *, int)' discards const
      db/dbobject.cpp:1508: warning: converting `const char *' to `char *' is a contravariance violation
      db/dbobject.cpp:1508: warning: passing `const char *' as argument 2 of `Tcl_SetVar(Tcl_Interp *, char *, char *, int)' discards const
      db/dbobject.cpp:1511: warning: converting `const char *' to `char *' is a contravariance violation
      db/dbobject.cpp:1511: warning: passing `const char *' as argument 2 of `Tcl_SetVar(Tcl_Interp *, char *, char *, int)' discards const
      db/dbobject.cpp:1514: warning: converting `const char *' to `char *' is a contravariance violation
      db/dbobject.cpp:1514: warning: passing `const char *' as argument 2 of `Tcl_SetVar(Tcl_Interp *, char *, char *, int)' discards const
      
      Since argument #2 is never changed by the procedure, it should be declared
      as a const parameter.
      
      There's a good chance "tk.h" has the same problems, but I haven't checked
      yet.
      
                                                Brian
                                       ( [email protected] )
      
      
      
      This is conflicting with someone else's code, where the cast should
      be made.  It may be true that Tcl_SetVar won't change the char, but
      it has always been defined to be char*, so changing it would just
      cause others headaches. 
      -- 09/15/1999 hobbs
      
    4. foundin initialized to: "obsolete: 8.0p2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to: "const char * warnings"
    11. type initialized to: "Bug"
  2. Ticket change [a6d935cd99] (rid 98676) by welch on 2000-10-26 08:12:11:

    1. closedate changed to: "2000-10-26T01:12:11"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [981ebf7c37] (rid 110551) by dgp on 2001-04-16 20:57:44:

    1. closedate changed to: "2001-04-16T13:57:44"
    2. closer changed to: "dgp"
    3. resolution changed to: "Duplicate"