This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: remove libiberty/getopt.c warnings


> > 2004-12-08  Ben Elliston  <bje@au.ibm.com>
> > 
> > 	* getopt.c: Include "ansidecl.h" for the ATTRIBUTE_UNUSED macro.
> > 	(_getopt_initialize): Annotate argc and argv parameters as unused.
> 
> Ok.

We both missed something, which I'll include in the check-in:

Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/libiberty/Makefile.in,v
retrieving revision 1.61
diff -u -r1.61 Makefile.in
--- Makefile.in 13 Nov 2004 15:48:36 -0000      1.61
+++ Makefile.in 8 Dec 2004 00:27:58 -0000
@@ -581,7 +581,8 @@
        else true; fi
        $(COMPILE.c) $(srcdir)/getcwd.c $(OUTPUT_OPTION)
 
-./getopt.o: $(srcdir)/getopt.c config.h $(INCDIR)/getopt.h
+./getopt.o: $(srcdir)/getopt.c config.h $(INCDIR)/getopt.h \
+       $(INCDIR)/ansidecl.h
        if [ x"$(PICFLAG)" != x ]; then \
          $(COMPILE.c) $(PICFLAG) $(srcdir)/getopt.c -o pic/$@; \
        else true; fi

Thanks,
Ben

Attachment: signature.asc
Description: Digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]