Skip to content
Commit c726b822 authored by David Daney's avatar David Daney Committed by Ralf Baechle
Browse files

MIPS: Fix GCC-4.6 'set but not used' warning in signal*.c



GCC-4.6 can find more unused code than previous versions could.

In the case of protected_restore_fp_context{,32}, the variable tmp is
really used.  Its use is tricky in that we really care about the side
effects of the __put_user() calls.  So we must mark tmp with
__maybe_unused to quiet the warning.

Signed-off-by: default avatarDavid Daney <ddaney@caviumnetworks.com>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2035/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent a18059ac
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment