From: Chris Metcalf Date: Wed, 16 May 2012 13:38:48 +0000 (-0400) Subject: tile: avoid compiler warning in feraiseexcept() math_private override X-Git-Tag: upstream/2.30~10627^2~111 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa12ed1f6126db0f52d4145d29094c4013829ce3;p=external%2Fglibc.git tile: avoid compiler warning in feraiseexcept() math_private override --- diff --git a/ChangeLog.tile b/ChangeLog.tile index 3dcd1a5..e9180cf 100644 --- a/ChangeLog.tile +++ b/ChangeLog.tile @@ -1,5 +1,10 @@ 2012-05-15 Chris Metcalf + * sysdeps/tile/math_private.h (feraiseexcept): Use statement + expression syntax to avoid compiler warning. + +2012-05-15 Chris Metcalf + * sysdeps/tile/libm-test-ulps: New file. 2012-05-15 Chris Metcalf diff --git a/sysdeps/tile/math_private.h b/sysdeps/tile/math_private.h index 2dab42b..858db4a 100644 --- a/sysdeps/tile/math_private.h +++ b/sysdeps/tile/math_private.h @@ -6,7 +6,8 @@ And since we don't define FE_INVALID, FE_DIVBYZERO, etc., we must ignore the argument of feraiseexcept() as well. we return "1" to indicate we failed to raise an exception, though none of - the callers in glibc actually care. */ -#define feraiseexcept(excepts) 1 + the callers in glibc actually care. The extra level of statement + expression wrapping avoids "statement with no effect" warnings. */ +#define feraiseexcept(excepts) ({ 1; }) #endif