[cpplib]: Fix recent lossage
Zack Weinberg
zack@wolery.cumb.org
Fri Jul 7 09:10:00 GMT 2000
On Fri, Jul 07, 2000 at 10:26:15PM +0900, Neil Booth wrote:
> Nathan Sidwell wrote:-
>
> > {
> > const cpp_token *msg = cpp_get_token (pfile);
> >
> > ! cpp_warning (pfile, "current file is older than %c%.*s%c",
> > ! left, (int)len, name, right);
> > if (msg->type != CPP_EOF)
> > {
> > U_CHAR *text, *limit;
> >
> > + msg->col = 0;
> > + msg->flags = 0;
> > text = pfile->limit;
>
> Hmmm, msg is a pointer to const. Could you add casts?
Better still, don't mess with msg at all; advance text over any extra
spaces after calling _cpp_dump_list.
zw
More information about the Gcc-patches
mailing list