diff --git a/bindings/python/time64.i b/bindings/python/time64.i index cf3408a98b..93d9f261f8 100644 --- a/bindings/python/time64.i +++ b/bindings/python/time64.i @@ -137,6 +137,10 @@ PyObject *tp; struct tm t; + // SWIG 4.02 (maybe others?) generates a redundant variable "time64 secs20" + // This line avoids the unused-variable warning + (void) secs; + // directly access return value (result) of function // only return datetime if TRUE if(result) {