eliminate warning in gcc.c

Matt Kraai kraai@alumni.carnegiemellon.edu
Tue Aug 21 12:44:00 GMT 2001


Howdy,

The following patch makes the prefix member of the prefix_list
struct a const char *, which eliminates a recently introduced
warning.  It bootstrapped on i686-pc-linux-gnu with no
regressions.

Matt

2001-08-21  Matt Kraai  <kraai@alumni.carnegiemellon.edu>

	* gcc.c (struct prefix_list): Change prefix to const char *.

Index: gcc/gcc.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gcc.c,v
retrieving revision 1.243
diff -c -3 -p -r1.243 gcc.c
*** gcc.c	2001/08/20 13:39:36	1.243
--- gcc.c	2001/08/21 19:22:45
*************** skip_whitespace (p)
*** 1205,1211 ****
  
  struct prefix_list
  {
!   char *prefix;               /* String to prepend to the path.  */
    struct prefix_list *next;   /* Next in linked list.  */
    int require_machine_suffix; /* Don't use without machine_suffix.  */
    /* 2 means try both machine_suffix and just_machine_suffix.  */
--- 1205,1211 ----
  
  struct prefix_list
  {
!   const char *prefix;	      /* String to prepend to the path.  */
    struct prefix_list *next;   /* Next in linked list.  */
    int require_machine_suffix; /* Don't use without machine_suffix.  */
    /* 2 means try both machine_suffix and just_machine_suffix.  */



More information about the Gcc-patches mailing list