math-emu/soft-fp.h: (_FP_ROUND_ZERO) cast 0 to void to fix warning
authorVincent Chen <vincentc@andestech.com>
Thu, 22 Nov 2018 03:14:38 +0000 (11:14 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Dec 2019 07:51:34 +0000 (08:51 +0100)
commit8f56c6c72013f07856f58cbfa69af946c7ed8c1a
tree0dbcebc9eae1d87170a0eb1d37c18ecf99bf319d
parent78e6704dd6b2848ebc3406d2de1304b387acc779
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>
include/math-emu/soft-fp.h