vasnprintf: silence mingw compiler warning
authorEric Blake <eblake@redhat.com>
Wed, 29 May 2013 23:47:50 +0000 (17:47 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 30 May 2013 17:39:06 +0000 (11:39 -0600)
commit96bdcc1469061864d4ebcb541849e81b6b8c9da3
tree8026b0611f66a91997753f4b6b891f0830d112d8
parent96a263f7953ec80851c81f3a1f40127600b7ea7b
vasnprintf: silence mingw compiler warning

On mingw, vasnprintf is able to use snprintf, but not its return
value; this led to a situation where gcc warns:

vasnprintf.c: In function 'vasnprintf':
vasnprintf.c:4609:21: error: variable 'has_width' set but not used [-Werror=unused-but-set-variable]

Rather than hacking through a bunch of #ifdefs, where some used both
variables and others only used one, I changed the lone use of just
'width' to also use 'has_width'.

* lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/vasnprintf.c