[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20171226104554.19612-2-malat@debian.org>
Date: Tue, 26 Dec 2017 11:45:51 +0100
From: Mathieu Malaterre <malat@...ian.org>
To: Aleksandar Markovic <aleksandar.markovic@...s.com>
Cc: Mathieu Malaterre <malat@...ian.org>,
Ralf Baechle <ralf@...ux-mips.org>,
Miodrag Dinic <miodrag.dinic@...s.com>,
Goran Ferenc <goran.ferenc@...tec.com>,
James Hogan <jhogan@...nel.org>,
Douglas Leung <douglas.leung@...tec.com>,
linux-mips@...ux-mips.org, linux-kernel@...r.kernel.org
Subject: [PATCH 2/2] MIPS: math-emu: Declare ys variable as possibly unused
Fix non-fatal warning:
arch/mips/math-emu/sp_fdp.c: In function ‘ieee754sp_fdp’:
arch/mips/math-emu/ieee754int.h:60:31: warning: variable ‘ys’ set but not used [-Wunused-but-set-variable]
unsigned int ym; int ye; int ys; int yc
^
arch/mips/math-emu/sp_fdp.c:37:2: note: in expansion of macro ‘COMPYSP’
COMPYSP;
^~~~~~~
Signed-off-by: Mathieu Malaterre <malat@...ian.org>
---
arch/mips/math-emu/ieee754int.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/math-emu/ieee754int.h b/arch/mips/math-emu/ieee754int.h
index 06ac0e2ac7ac..cb8f04cd24bf 100644
--- a/arch/mips/math-emu/ieee754int.h
+++ b/arch/mips/math-emu/ieee754int.h
@@ -57,7 +57,7 @@ static inline int ieee754_class_nan(int xc)
unsigned int xm; int xe; int xs __maybe_unused; int xc
#define COMPYSP \
- unsigned int ym; int ye; int ys; int yc
+ unsigned int ym; int ye; int ys __maybe_unused; int yc
#define COMPZSP \
unsigned int zm; int ze; int zs; int zc
--
2.11.0
Powered by blists - more mailing lists