diff options
author | Joseph Myers <joseph@codesourcery.com> | 2014-11-26 00:45:19 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2014-11-26 00:45:19 +0000 |
commit | c82f5c0ce5c1c0180fca311ceb29fd2d59da7441 (patch) | |
tree | a6365743912e255a581211460da20a88f1cfd97f /ChangeLog | |
parent | 439e1ad6d04e24f76f92ff7f61153fbe489559b9 (diff) | |
download | glibc-c82f5c0ce5c1c0180fca311ceb29fd2d59da7441.zip glibc-c82f5c0ce5c1c0180fca311ceb29fd2d59da7441.tar.gz glibc-c82f5c0ce5c1c0180fca311ceb29fd2d59da7441.tar.bz2 |
Fix warning in setjmp/jmpbug.c.
This patch fixes a "set but not used" warning in setjmp/jmpbug.c. A
variable is used only to store the result of alloca. A cast to void
is added to avoid the warning, and the variable is made volatile to
ensure the call to alloca isn't optimized away for being unused.
Tested for x86_64.
* setjmp/jmpbug.c (test): Make foo volatile and cast it to
void.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2014-11-26 Joseph Myers <joseph@codesourcery.com> + + * setjmp/jmpbug.c (test): Make foo volatile and cast it to + void. + 2014-11-25 Joseph Myers <joseph@codesourcery.com> * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make |