Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b73f61e40e6dfb47e6c57f70632e83d3a96ff2974af3bd85d514616b7c647c58
Ticket: 6b8e39e83f9855c79c3c2777f12fb3bd90424912
On Unix, IsTimeNative() always defined but not always used
User & Date: stu on 2025-07-02 06:43:40
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    ... resulting in a compiler warning.
    Here is a patch to put an #if around the function.
    
    --- unix/tclUnixTime.c.orig
    +++ unix/tclUnixTime.c
    @@ -43,11 +43,13 @@ GetTime(
         tclGetTimeProcPtr(timePtr, tclTimeClientData);
     }
     
    +#if defined(NO_GETTOD) || defined(TCL_WIDE_CLICKS)
     static inline int
     IsTimeNative(void)
     {
         return tclGetTimeProcPtr == NativeGetTime;
     }
    +#endif
     
    
     /*
      *----------------------------------------------------------------------
    
  5. foundin changed to: "current"
  6. is_private changed to: "0"
  7. login: "stu"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "702b65e835b7b4b4720d6e9d37fc582f82909394"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "stu"
  14. subsystem changed to: "06. Time Measurement"
  15. title changed to:
    On Unix, IsTimeNative() always defined but not always used
    
  16. type changed to: "Patch"