changeset 13003:31b79f64a1b5

getopt: avoid compiler warning * lib/getopt.c (attribute_hidden): Remove unused macro. Signed-off-by: Eric Blake <eblake@redhat.com>
author Eric Blake <eblake@redhat.com>
date Fri, 19 Mar 2010 06:29:16 -0600
parents c7912be68eec
children fc24abfe059f
files ChangeLog lib/getopt.c
diffstat 2 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-03-19  Eric Blake  <eblake@redhat.com>
+
+	getopt: avoid compiler warning
+	* lib/getopt.c (attribute_hidden): Remove unused macro.
+
 2010-03-18  Bruno Haible  <bruno@clisp.org>
 
 	Fix link errors on Solaris 8.
--- a/lib/getopt.c
+++ b/lib/getopt.c
@@ -41,10 +41,6 @@
 # include <wchar.h>
 #endif
 
-#ifndef attribute_hidden
-# define attribute_hidden
-#endif
-
 /* This version of `getopt' appears to the caller like standard Unix `getopt'
    but it behaves differently for the user, since it allows the user
    to intersperse the options with the other arguments.