fnmatch: work around GCC compiler warning bug with uninit var
commitb1eda10e17bf2056ca79a534d92fe0b0b06bd410
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 25 Nov 2014 22:12:48 +0000 (25 14:12 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 25 Nov 2014 22:20:53 +0000 (25 14:20 -0800)
tree0ae624bdeb264f2a7a11e2fd2266f73acbc56af9
parentbde2667a22c355467a4f07246c6d07a9dcc89366
fnmatch: work around GCC compiler warning bug with uninit var

* posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
This works around a bug with x86-64 GCC 4.9.2 and earlier
where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
"../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
used uninitialized in this function [-Wmaybe-uninitialized]".
ChangeLog
posix/fnmatch_loop.c