about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2014-12-10 00:44:54 +0000
committerJoseph Myers <joseph@codesourcery.com>2014-12-10 00:44:54 +0000
commit0f88636c09686b1f8e876bfa88b40bacbcae8c11 (patch)
treea3891d953fac268765952753a7d41873f519bfe1 /ChangeLog
parentc81e9deba2f73ddc6f62a9d41684824c854366c6 (diff)
downloadglibc-0f88636c09686b1f8e876bfa88b40bacbcae8c11.tar.gz
glibc-0f88636c09686b1f8e876bfa88b40bacbcae8c11.tar.xz
glibc-0f88636c09686b1f8e876bfa88b40bacbcae8c11.zip
Disable -Wdeprecated-declarations for register_printf_function calls in tst-printfsz.c.
This patch uses diagnostic control pragmas to disable warnings in
stdio-common/tst-printfsz.c for use of the deprecated
register_printf_function.  Because this test is testing printf_size
and printf_size_info, and the latter has the interface expected for
register_printf_function instead of the newer
register_printf_specifier, it seems correct for this test to use the
deprecated interface (wrapping printf_size_info in some way to use
register_printf_specifier would seem an excessive change to what's
tested).

Tested for x86_64.

	* stdio-common/tst-printfsz.c: Include <libc-internal.h>.
	(main): Disable -Wdeprecated-declarations around calls to
	register_printf_function.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog4
1 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 04804b077b..1014ba3dff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
 
+	* stdio-common/tst-printfsz.c: Include <libc-internal.h>.
+	(main): Disable -Wdeprecated-declarations around calls to
+	register_printf_function.
+
 	* stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
 	(do_test): Disable -Wdiv-by-zero around some calls to
 	fwrite_unlocked and fread_unlocked.