Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 55713a03ccf1f19a42815d9517fd3e2b0fa1af8b
Ticket: 935160ffffffffffffffffffffffffffffffffff
OSX warnings and errors (6)
User & Date: tauvan on 2004-04-14 19:52:09
Changes

  1. assignee changed to: "mdejong"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    machine: mac ppc G4 (1st PCI 400Mhz) OSX 10.1.5
    
    My (6) suggestion is:
      change:
        tclInt.decls, tclUnixPort.h, tclUnixThrd.c, tclIntPlatDecls.h
      to "CONST time_t *" from "time_t *"
    
    Solves:
      warning: passing arg 1 of `TclpGmtime' discards qualifiers 
    from pointer target type
      warning: passing arg 1 of `TclpLocaltime' discards qualifiers 
    from pointer target type
    
    Condition:
        "OSX warnings and errors (1)" not required
        "OSX warnings and errors (2)" performed
        quick fix performed
    
    Suggestion:
       All "TclpLocaltime(time_t *" to "TclpLocaltime(CONST time_t *"
       All "TclpGmtime(time_t *" to "TclpGmtime(CONST time_t *"
       struct tm * (*tclpLocaltime) _ANSI_ARGS_((CONST time_t * 
    clock));
       struct tm * (*tclpGmtime) _ANSI_ARGS_((CONST time_t * 
    clock));
       tools/genStubs.tcl should take care of tclIntPlatDecls.h
    
    Special Notes:
        OSX prototype for gmtime & localtime use "const time_t *"
        glibc uses "__const time_t *"
        Linux Programmer's Manual uses "const time_t *"
    
    Results from (6):
      trashed previous builds
      make -C ./tcl8.4.6/macosx develop
      ./build/tcl/tcltest ./tcl8.4.6/tests/all.tcl
      less warnings
      w & w/o (1) same
    
    Thanks.
    
    
  4. foundin changed to: "obsolete: 8.4.6"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "tauvan"
  9. subsystem changed to: "53. Configuration and Build Tools"
  10. title changed to: "OSX warnings and errors (6)"
  11. type changed to: "Bug"