]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:22:10 +0000 (14:22 -0300)
commit1443774541cbda8a4721addc9bccd8de6b5e4ee9
treeeaec2858073c1c935474bdb7322c4351343cbc5c
parent7cb0f7c021cbf8a8ce26aaefd8634c7de4c88056
math-emu/soft-fp.h: (_FP_ROUND_ZERO) cast 0 to void to fix warning

BugLink: https://bugs.launchpad.net/bugs/1857158
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
include/math-emu/soft-fp.h