about summary refs log tree commit diff
path: root/math/w_coshl.c
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 /math/w_coshl.c
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 'math/w_coshl.c')
0 files changed, 0 insertions, 0 deletions