diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2014-11-25 14:12:48 -0800 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2014-11-25 14:20:53 -0800 |
| commit | b1eda10e17bf2056ca79a534d92fe0b0b06bd410 (patch) | |
| tree | 0ae624bdeb264f2a7a11e2fd2266f73acbc56af9 /ChangeLog | |
| parent | bde2667a22c355467a4f07246c6d07a9dcc89366 (diff) | |
| download | glibc-b1eda10e17bf2056ca79a534d92fe0b0b06bd410.tar.xz glibc-b1eda10e17bf2056ca79a534d92fe0b0b06bd410.zip | |
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]".
Diffstat (limited to 'ChangeLog')
| -rw-r--r-- | ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,12 @@ +2014-11-25 Paul Eggert <eggert@cs.ucla.edu> + + 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]". + 2014-11-25 Joseph Myers <joseph@codesourcery.com> * posix/bug-regex31.c (main): Return RES not 0. |
