|
2025-07-03
| ||
| 11:43 | • Closed ticket [6b8e39e83f]: On Unix, IsTimeNative() always defined but not alway... artifact: 81d48d8757 user: jan.nijtmans | |
| 10:42 | Fix [6b8e39e83]: On Unix, IsTimeNative() always defined but not always used check-in: 36318ba1e2 user: jan.nijtmans tags: core-9-0-branch | |
|
2025-07-02
| ||
| 06:43 | • New ticket [6b8e39e83f] On Unix, IsTimeNative() always defined but not always us... artifact: b73f61e40e user: stu | |
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.