strptime: fix regression on mingw
authorEric Blake <eblake@redhat.com>
Thu, 12 Jan 2012 15:39:07 +0000 (08:39 -0700)
committerEric Blake <eblake@redhat.com>
Thu, 12 Jan 2012 15:39:07 +0000 (08:39 -0700)
commit16f49939147b27628041daa5cf01e9f7ada6a44d
treea6141aae6c31ac9731e5eb3b32caab049a39ba50
parent24a2f3c6ac107e6b35f1ac9f273b691738ef3f9a
strptime: fix regression on mingw

The previous change lost the side effect of skipping past a
time-zone offset sign.  Instead, fix things to rely on the
fact that _GL_UNUSED can be applied to any variable, even if
some compilation paths use it, to silence gcc on the paths
where it is not used.

* lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
Fix regression.  Reported by Bruno Haible.

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