about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2014-12-10 00:43:36 +0000
committerJoseph Myers <joseph@codesourcery.com>2014-12-10 00:43:36 +0000
commitc81e9deba2f73ddc6f62a9d41684824c854366c6 (patch)
tree299afb1952fcd068b405612940a968d354aaaf2d /ChangeLog
parent2084e7ca4d344c39eb39e53848b51b5d84444414 (diff)
downloadglibc-c81e9deba2f73ddc6f62a9d41684824c854366c6.tar.gz
glibc-c81e9deba2f73ddc6f62a9d41684824c854366c6.tar.xz
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--ChangeLog4
1 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index cfbaf86faa..04804b077b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.