mirror of https://gitee.com/Nocallback/glibc.git
Browse Source
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.siddhesh/posix-wundef
2 changed files with 7 additions and 1 deletions
Loading…
Reference in new issue