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]

Re: egcs, PATCH to fix warnings in gperf generated files ...



  In message <199810020330.XAA07911@caip.rutgers.edu>you write:
  > 	Here is my stab at cleaning up warnings in the gperf generated
  > files in gcc/, gcc/cp, and gcc/ch.  There are mainly two types of
  > warnings coming from these headers:
  > 
  >  > c-gperf.h:43: warning: array subscript has type `char'
  > 
  > 	and:
  > 
  >  > c-gperf.h:54: warning: missing initializer for `wordlist[0].token'
  > 
  > 
  > 	Since these are generated files, I decided to fix these during
  > generation in the Makefiles by passing the output from gperf through sed
  > to add the appropriate anti-warning fixes. 
  > 
  > (Jeff, I recall you don't like different directory ChangeLogs merged
  > like this.  But each was a two-liner so I thought it would be okay to
  > include them all in this one message.)
  > 
  > 	The end result is 268 less warnings. :-)  Okay to install?
Wouldn't it make more sense to fix the parser input and possibly gperf itself?

jeff


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