On Unix, IsTimeNative() always defined but not always used
Closed / Fixed6b8e39e83f9855c79c3c2777f12fb3bd90424912Created 1 year agoUpdated 1 year ago
Descriptionplain2025-07-02 06:43:40
... 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
/*
*----------------------------------------------------------------------
jan.nijtmanswiki2025-07-03 11:43:45
Fixed [here]
Thanks for the report!
Log in (anonymous is fine) to add a comment.