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]

[PATCH] argv needs to be writable


gccspec.c(lang_specific_driver) and cppspec.c(lang_specific_driver) both
assume that argv is writable.  Thus one gets:

    ../../egcs/gcc/gcc.c:3085: warning: passing arg 2 of `lang_specific_driver' from incompatible pointer type

when compiling the `gcc' binary.

-- 
-- David    (obrien@NUXI.com)



2000-06-13  David O'Brien  <obrien@FreeBSD.org>

	* gcc.h (main): Quiet compiler warnings.  argv is assumed to be
	writable in parts of the GCC code.


Index: gcc.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/gcc.c,v
retrieving revision 1.145
diff -u -r1.145 gcc.c
--- gcc.c	2000/05/23 17:42:18	1.145
+++ gcc.c	2000/06/13 19:39:02
@@ -5135,7 +5135,7 @@
 int
 main (argc, argv)
      int argc;
-     const char **argv;
+     char **argv;
 {
   register size_t i;
   size_t j;

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