From b4169bc203c01c17f3ad5f3d854beaf0ef826aad Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Thu, 3 Jul 2025 10:42:21 +0000 Subject: Fix [6b8e39e83]: On Unix, IsTimeNative() always defined but not always used --- changes.md | 11 +++++++++++ unix/tclUnixTime.c | 2 ++ 2 files changed, 13 insertions(+) diff --git a/changes.md b/changes.md index 3a03f57..530fd14 100644 --- a/changes.md +++ b/changes.md @@ -4,6 +4,17 @@ changes to the Tcl source code at > [Tcl Source Code](https://core.tcl-lang.org/tcl/timeline) +Release Tcl 9.0.3 arises from the check-in with tag `core-9-0-3`. + +Tcl patch releases have the primary purpose of delivering bug fixes +to the userbase. + +# Bug fixes + - [On Unix, IsTimeNative() always defined but not always used](https://core.tcl-lang.org/tcl/tktview/6b8e3) + +# Updated bundled packages, libraries, standards, data + - sqlite3 3.50.2 + Release Tcl 9.0.2 arises from the check-in with tag `core-9-0-2`. Tcl patch releases have the primary purpose of delivering bug fixes diff --git a/unix/tclUnixTime.c b/unix/tclUnixTime.c index 29146aa..241065b 100644 --- a/unix/tclUnixTime.c +++ b/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 /* *---------------------------------------------------------------------- -- cgit v0.12