]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Fix GCC-4.6 'set but not used' warning in ieee754int.h
authorDavid Daney <ddaney@caviumnetworks.com>
Mon, 24 Jan 2011 22:51:36 +0000 (14:51 -0800)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 14 Mar 2011 20:07:26 +0000 (21:07 +0100)
commit6ecfb520894d75a5c50e9fbe1d180d4b94d6c663
treef44e09bcf3d725f384062abdece7b913f267d19a
parent7a5c728513e2a9ff620b2e79b31b826a214738c4
MIPS: Fix GCC-4.6 'set but not used' warning in ieee754int.h

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

In the case of arch/mips/math-emu/ieee754int.h, the COMPXSP and
COMPXDP macros are used in several places, but a couple of them leave
xs unused.  The easiest thing to do is mark it as __maybe_unused to
quiet the warning.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2032/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/math-emu/ieee754int.h