From c82f5c0ce5c1c0180fca311ceb29fd2d59da7441 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 26 Nov 2014 00:45:19 +0000 Subject: 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. --- ChangeLog | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 23fba3607d..d6cedab7eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-11-26 Joseph Myers + + * setjmp/jmpbug.c (test): Make foo volatile and cast it to + void. + 2014-11-25 Joseph Myers * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make -- cgit 1.4.1