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]

Fix warning in libcpp/makedepend about missing prototype


The appended patch fixes this warning:

/cvs/gcc/libcpp/makedepend.c:152: warning: implicit declaration of function `deps_add_vpath'

Bootstrapped/regtested on Linux/x86-64.

Ok to commit?

Andreas

2004-10-10  Andreas Jaeger  <aj@suse.de>

	* makedepend.c: Include mkdeps.h for prototype of deps_add_vpath.
	* Makefile.in (makedepend.o): Add dependency on mkdeps.h.

============================================================
Index: libcpp/makedepend.c
--- libcpp/makedepend.c	5 Jun 2004 20:57:58 -0000	1.1
+++ libcpp/makedepend.c	8 Oct 2004 07:57:22 -0000
@@ -25,6 +25,7 @@ Foundation, 59 Temple Place - Suite 330,
 #include "line-map.h"
 #include "cpplib.h"
 #include "getopt.h"
+#include "mkdeps.h"
 
 const char *progname;
 const char *vpath;
============================================================
Index: libcpp/Makefile.in
--- libcpp/Makefile.in	24 Sep 2004 21:39:06 -0000	1.11
+++ libcpp/Makefile.in	8 Oct 2004 07:57:22 -0000
@@ -246,7 +246,7 @@ init.o: $(srcdir)/init.c $(COMMON_DEPS) 
 lex.o: $(srcdir)/lex.c $(COMMON_DEPS)
 line-map.o: $(srcdir)/line-map.c $(COMMON_DEPS)
 macro.o: $(srcdir)/macro.c $(COMMON_DEPS)
-makedepend.o: $(srcdir)/makedepend.c $(COMMON_DEPS)
+makedepend.o: $(srcdir)/makedepend.c $(COMMON_DEPS) $(libcpp_incdir)/mkdeps.h
 mkdeps.o: $(srcdir)/mkdeps.c $(COMMON_DEPS)
 
 pch.o: $(srcdir)/pch.c $(COMMON_DEPS) \
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SUSE Linux AG, Maxfeldstr. 5, 90409 NÃrnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00000.pgp
Description: PGP signature


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