From c81e9deba2f73ddc6f62a9d41684824c854366c6 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 10 Dec 2014 00:43:36 +0000 Subject: 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 . (do_test): Disable -Wdiv-by-zero around some calls to fwrite_unlocked and fread_unlocked. --- ChangeLog | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index cfbaf86faa..04804b077b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2014-12-10 Joseph Myers + * stdio-common/tst-unlockedio.c: Include . + (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. -- cgit 1.4.1