diff options
author | Vincent Chen <vincentc@andestech.com> | 2018-11-22 11:14:38 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-17 20:38:02 +0100 |
commit | 4a0b4f32bec9bf72b4914d70088f426a1cf123d5 (patch) | |
tree | 93022147a5412b4a3ba4dbb2b6150e3a7a2c771e | |
parent | 7d04bd4fe981cabd19eab3040a9facd4c74a8535 (diff) | |
download | linux-stable-4a0b4f32bec9bf72b4914d70088f426a1cf123d5.tar.gz linux-stable-4a0b4f32bec9bf72b4914d70088f426a1cf123d5.tar.bz2 linux-stable-4a0b4f32bec9bf72b4914d70088f426a1cf123d5.zip |
math-emu/soft-fp.h: (_FP_ROUND_ZERO) cast 0 to void to fix warning
[ Upstream commit 83312f1b7ae205dca647bf52bbe2d51303cdedfb ]
_FP_ROUND_ZERO is defined as 0 and used as a statemente in macro
_FP_ROUND. This generates "error: statement with no effect
[-Werror=unused-value]" from gcc. Defining _FP_ROUND_ZERO as (void)0 to
fix it.
This modification is quoted from glibc 'commit <In libc/:>
(8ed1e7d5894000c155acbd06f)'
Signed-off-by: Vincent Chen <vincentc@andestech.com>
Acked-by: Greentime Hu <greentime@andestech.com>
Signed-off-by: Greentime Hu <greentime@andestech.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | include/math-emu/soft-fp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/math-emu/soft-fp.h b/include/math-emu/soft-fp.h index 3f284bc03180..5650c1628383 100644 --- a/include/math-emu/soft-fp.h +++ b/include/math-emu/soft-fp.h @@ -138,7 +138,7 @@ do { \ _FP_FRAC_ADDI_##wc(X, _FP_WORK_ROUND); \ } while (0) -#define _FP_ROUND_ZERO(wc, X) 0 +#define _FP_ROUND_ZERO(wc, X) (void)0 #define _FP_ROUND_PINF(wc, X) \ do { \ |