mirror of git://sourceware.org/git/glibc.git
tile: avoid compiler warning in feraiseexcept() math_private override
This commit is contained in:
parent
d22d562a48
commit
fa12ed1f61
|
@ -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>
|
2012-05-15 Chris Metcalf <cmetcalf@tilera.com>
|
||||||
|
|
||||||
* sysdeps/tile/libm-test-ulps: New file.
|
* sysdeps/tile/libm-test-ulps: New file.
|
||||||
|
|
|
@ -6,7 +6,8 @@
|
||||||
And since we don't define FE_INVALID, FE_DIVBYZERO, etc., we
|
And since we don't define FE_INVALID, FE_DIVBYZERO, etc., we
|
||||||
must ignore the argument of feraiseexcept() as well. we return
|
must ignore the argument of feraiseexcept() as well. we return
|
||||||
"1" to indicate we failed to raise an exception, though none of
|
"1" to indicate we failed to raise an exception, though none of
|
||||||
the callers in glibc actually care. */
|
the callers in glibc actually care. The extra level of statement
|
||||||
#define feraiseexcept(excepts) 1
|
expression wrapping avoids "statement with no effect" warnings. */
|
||||||
|
#define feraiseexcept(excepts) ({ 1; })
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue