From d0249d98830ff70a3b0f0e287a85629ad5ca48ef Mon Sep 17 00:00:00 2001 From: Bill Sommerfeld Date: Fri, 2 May 2025 14:31:27 -0700 Subject: [PATCH] Avoid unused variable warnings on systems without HAVE_STRUCT_TM_GMTOFF --- common/base-typemaps.i | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/base-typemaps.i b/common/base-typemaps.i index 2a878a0122..42dc4ee3cf 100644 --- a/common/base-typemaps.i +++ b/common/base-typemaps.i @@ -95,6 +95,8 @@ typedef char gchar; SCM zone = SCM_SIMPLE_VECTOR_REF(tm, 10); tzone = SCM_UNBNDP(zone) ? NULL : scm_to_locale_string(zone); t.tm_zone = tzone; +%#else + (void)tzone; %#endif $1 = &t; }