diff options
author | Joseph Myers <joseph@codesourcery.com> | 2014-12-10 00:43:36 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2014-12-10 00:43:36 +0000 |
commit | c81e9deba2f73ddc6f62a9d41684824c854366c6 (patch) | |
tree | 299afb1952fcd068b405612940a968d354aaaf2d /ChangeLog | |
parent | 2084e7ca4d344c39eb39e53848b51b5d84444414 (diff) | |
download | glibc-c81e9deba2f73ddc6f62a9d41684824c854366c6.tar glibc-c81e9deba2f73ddc6f62a9d41684824c854366c6.tar.gz glibc-c81e9deba2f73ddc6f62a9d41684824c854366c6.tar.bz2 glibc-c81e9deba2f73ddc6f62a9d41684824c854366c6.zip |
Disable -Wdiv-by-zero for some tests in stdio-common/tst-unlockedio.c.
This patch uses diagnostic control pragmas to disable some
division-by-zero warnings in stdio-common/tst-unlockedio.c. This is
another test where disabling warnings using diagnostic pragmas seems
appropriate (the warnings are not wildly inappropriate for what the
test deliberately does; the deliberate use of unusual arguments to the
macros being tested means that changing the arguments in a way that
avoids the warning would also unduly perturb what is being tested).
Tested for x86_64.
* stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
(do_test): Disable -Wdiv-by-zero around some calls to
fwrite_unlocked and fread_unlocked.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1,5 +1,9 @@ 2014-12-10 Joseph Myers <joseph@codesourcery.com> + * stdio-common/tst-unlockedio.c: Include <libc-internal.h>. + (do_test): Disable -Wdiv-by-zero around some calls to + fwrite_unlocked and fread_unlocked. + * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro. (DIAG_POP_NEEDS_COMMENT): Likewise. (_DIAG_STR1): Likewise. |