Skip to content

Commit 9973a7d

Browse files
Silence unused variable warnings
1 parent f5b906f commit 9973a7d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Modules/cjkcodecs/cjkcodecs.h

+2
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ static int \
219219
add_mappings(cjkcodecs_module_state *st) \
220220
{ \
221221
int idx = 0; \
222+
(void)idx; \
222223
st->num_mappings = NUM; \
223224
st->mapping_list = PyMem_Calloc(NUM, sizeof(struct dbcs_map)); \
224225
if (st->mapping_list == NULL) { \
@@ -242,6 +243,7 @@ static int \
242243
add_codecs(cjkcodecs_module_state *st) \
243244
{ \
244245
int idx = 0; \
246+
(void)idx; \
245247
st->num_codecs = NUM; \
246248
st->codec_list = PyMem_Calloc(NUM, sizeof(MultibyteCodec)); \
247249
if (st->codec_list == NULL) { \

0 commit comments

Comments
 (0)