Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

math-emu/soft-fp.h: (_FP_ROUND_ZERO) cast 0 to void to fix warning

_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>

authored by

Vincent Chen and committed by
Greentime Hu
83312f1b 7adb3e99

+1 -1
+1 -1
include/math-emu/soft-fp.h
··· 138 138 _FP_FRAC_ADDI_##wc(X, _FP_WORK_ROUND); \ 139 139 } while (0) 140 140 141 - #define _FP_ROUND_ZERO(wc, X) 0 141 + #define _FP_ROUND_ZERO(wc, X) (void)0 142 142 143 143 #define _FP_ROUND_PINF(wc, X) \ 144 144 do { \