aboutsummaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2017-04-03 08:45:41 -0400
committerZack Weinberg <zackw@panix.com>2017-04-07 07:52:29 -0400
commit0f3be8721a86299600eae2d266934f661bf7c990 (patch)
tree51085f8f01905cd53c041869b25ed3688ad59abd /ChangeLog
parentaeacb9f9127cff0ed099026156ca35c025f343b7 (diff)
downloadglibc-0f3be8721a86299600eae2d266934f661bf7c990.zip
glibc-0f3be8721a86299600eae2d266934f661bf7c990.tar.gz
glibc-0f3be8721a86299600eae2d266934f661bf7c990.tar.bz2
getopt: merge _GL_UNUSED annotations from gnulib
gnulib now has annotations on at least some functions to cater to compilation with -Wunused-parameter. In order to follow suit cleanly, I've added to libc-symbols.h some of the _GL_* macros that gnulib-common.m4 puts into config.h. (I don't think they belong in sys/cdefs.h, at least not without further thought.) At this point all gnulib-side changes to getopt.c have been merged. * include/libc-symbols.h: For gnulib compatibility, define _GL_UNUSED, _GL_UNUSED_LABEL, _GL_ATTRIBUTE_PURE, and _GL_ATTRIBUTE_CONST. * posix/getopt.c (_getopt_initialize): Mark argc and argv parameters with _GL_UNUSED.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4b8371a..7c0f6e9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2017-04-07 Zack Weinberg <zackw@panix.com>
+ * include/libc-symbols.h: For gnulib compatibility, define
+ _GL_UNUSED, _GL_UNUSED_LABEL, _GL_ATTRIBUTE_PURE, and
+ _GL_ATTRIBUTE_CONST.
+ * posix/getopt.c (_getopt_initialize): Mark argc and argv
+ parameters with _GL_UNUSED.
+
* posix/getopt.c: When used standalone, define __libc_use_alloca
as always false and alloca to abort if called.
(process_long_option): Rewrite handling of ambiguous long options