From be36d922943b11ebfbb43112de1c48bef9e2d68a Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 12 Jun 2019 13:02:56 +0200 Subject: [PATCH] Fix unused value warnings in snprintf.c --- main/snprintf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/snprintf.c b/main/snprintf.c index e3e0993ab5..61a5dfffce 100644 --- a/main/snprintf.c +++ b/main/snprintf.c @@ -568,7 +568,7 @@ typedef struct buf_area buffy; INS_CHAR( ch, sp, bep, cc ) ; \ width-- ; \ } \ - while ( width > len ) + while ( (size_t)width > len ) /* * Prefix the character ch to the string str @@ -1188,7 +1188,7 @@ fmt_error: s_len--; min_width--; } - PAD((size_t)min_width, s_len, pad_char); + PAD(min_width, s_len, pad_char); } /* * Print the string s. @@ -1199,7 +1199,7 @@ fmt_error: } if (adjust_width && adjust == LEFT && (size_t)min_width > s_len) - PAD((size_t)min_width, s_len, pad_char); + PAD(min_width, s_len, pad_char); if (free_zcopy) { zval_ptr_dtor_str(&zcopy); } -- 2.40.0