Skip to content

Commit f273e74

Browse files
committed
Silence Wunused-variable via the time-honoured solution of casting to void
1 parent 1222418 commit f273e74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_ctypes/stgdict.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ _ctypes_alloc_format_padding(const char *prefix, Py_ssize_t padding)
355355
return _ctypes_alloc_format_string(prefix, "x");
356356
}
357357

358-
int ret = PyOS_snprintf(buf, sizeof(buf), "%zdx", padding);
358+
int ret = PyOS_snprintf(buf, sizeof(buf), "%zdx", padding); (void)ret;
359359
assert(0 <= ret && ret < (Py_ssize_t)sizeof(buf));
360360
return _ctypes_alloc_format_string(prefix, buf);
361361
}

0 commit comments

Comments
 (0)