diff options
| author | Chris Metcalf <cmetcalf@tilera.com> | 2012-05-16 09:38:48 -0400 |
|---|---|---|
| committer | Chris Metcalf <cmetcalf@tilera.com> | 2012-05-17 09:03:23 -0400 |
| commit | fa12ed1f6126db0f52d4145d29094c4013829ce3 (patch) | |
| tree | 0c73946907108eb7f08cbb4299e2a012283991a0 | |
| parent | d22d562a4843180476f0978947ab24066633dda4 (diff) | |
| download | glibc-fa12ed1f6126db0f52d4145d29094c4013829ce3.tar.xz glibc-fa12ed1f6126db0f52d4145d29094c4013829ce3.zip | |
tile: avoid compiler warning in feraiseexcept() math_private override
| -rw-r--r-- | ChangeLog.tile | 5 | ||||
| -rw-r--r-- | sysdeps/tile/math_private.h | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog.tile b/ChangeLog.tile index 3dcd1a5992..e9180cf07d 100644 --- a/ChangeLog.tile +++ b/ChangeLog.tile @@ -1,5 +1,10 @@ 2012-05-15 Chris Metcalf <cmetcalf@tilera.com> + * sysdeps/tile/math_private.h (feraiseexcept): Use statement + expression syntax to avoid compiler warning. + +2012-05-15 Chris Metcalf <cmetcalf@tilera.com> + * sysdeps/tile/libm-test-ulps: New file. 2012-05-15 Chris Metcalf <cmetcalf@tilera.com> diff --git a/sysdeps/tile/math_private.h b/sysdeps/tile/math_private.h index 2dab42b9bf..858db4a051 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 |
