A const-ify patch for gperf generated files
Jeffrey A Law
law@upchuck.cygnus.com
Wed Mar 31 18:59:00 GMT 1999
In message < 199903272125.QAA13030@caip.rutgers.edu >you write:
> This const-ify patch patch gets rid of around 900
> -Wwrite-strings warnings in the gperf generated files used in egcs.
>
> Okay to install?
>
> --Kaveh
>
>
>
> Sat Mar 27 12:39:51 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
>
> * Makefile.in (c-gperf.h): Generate using gperf language 'C', not
> 'KR-C', so gperf uses the `const' keyword on strings.
>
> * c-parse.gperf (resword): Const-ify a char*.
Err, does using "C" vs "KR-C" have any other effects other than const?
I'd really prefer us to spend time fixing the basic -W -Wall warnings
instead of -Wwrite-strings, -Wstrict-prototypes, etc.
We also need to shift our focus away from warning fixes to egcs-1.2 issues.
jeff
More information about the Gcc-patches
mailing list