Commit 91b51f30 authored by David Daney's avatar David Daney Committed by Ralf Baechle

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: default avatarDavid Daney <ddaney@caviumnetworks.com>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2032/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 7a6e4ca1
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
#define COMPXSP \ #define COMPXSP \
unsigned xm; int xe; int xs; int xc unsigned xm; int xe; int xs __maybe_unused; int xc
#define COMPYSP \ #define COMPYSP \
unsigned ym; int ye; int ys; int yc unsigned ym; int ye; int ys; int yc
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
#define COMPXDP \ #define COMPXDP \
u64 xm; int xe; int xs; int xc u64 xm; int xe; int xs __maybe_unused; int xc
#define COMPYDP \ #define COMPYDP \
u64 ym; int ye; int ys; int yc u64 ym; int ye; int ys; int yc
......
Markdown is supported
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