From 190f81c6d5676efd321701dd9b8918a24da2f783 Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Wed, 1 Feb 2017 10:03:04 -0800 Subject: [PATCH] Silence harmless warnings discovered via run_tests.sh. --- test/unit/stats_print.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/unit/stats_print.c b/test/unit/stats_print.c index 5a11b503..f0437891 100644 --- a/test/unit/stats_print.c +++ b/test/unit/stats_print.c @@ -65,7 +65,8 @@ token_error(token_t *token) { token->col); break; } - write(STDERR_FILENO, &token->parser->buf[token->pos], token->len); + UNUSED ssize_t err = write(STDERR_FILENO, + &token->parser->buf[token->pos], token->len); malloc_printf("\n"); } @@ -129,7 +130,9 @@ parser_tokenize(parser_t *parser) { STATE_EXP_DIGITS, STATE_ACCEPT } state = STATE_START; - size_t token_pos, token_line, token_col; + size_t token_pos JEMALLOC_CC_SILENCE_INIT(0); + size_t token_line JEMALLOC_CC_SILENCE_INIT(1); + size_t token_col JEMALLOC_CC_SILENCE_INIT(0); assert_zu_le(parser->pos, parser->len, "Position is past end of buffer");