]> sourceware.org Git - glibc.git/commitdiff
tile: avoid compiler warning in feraiseexcept() math_private override
authorChris Metcalf <cmetcalf@tilera.com>
Wed, 16 May 2012 13:38:48 +0000 (09:38 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Thu, 17 May 2012 13:03:23 +0000 (09:03 -0400)
ChangeLog.tile
sysdeps/tile/math_private.h

index 3dcd1a5992ac21373bf6ccbd574f1ea83ac25842..e9180cf07d19b4d8fb01aca14902533bfa52b282 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 2dab42b9bfaea598c722aea9d157f4aed06517b2..858db4a0512a90d1c566c35a9b8d9d8d3d977262 100644 (file)
@@ -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
This page took 0.046272 seconds and 5 git commands to generate.