This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Quoting In Error/Warning Messages for Java


> That's what I tried next. However, parse_error_context()
> is marked ATTRIBUTE_PRINTF in java-tree.h and the
> bootstrapping compiler warns (and therefore errors
> out due to -Werror) about unknown format specifiers
> '%<' and '%>'. So I had to mark them
> ATTRIBUTE_GCC_FE_DIAG(2,3) which is defined in
> "toplev.h" - this leads to the requirement that
> "toplev.h" be included before "java-tree.h" everywhere.

Another alternative: just remove the "ATTRIBUTE_"
marker for parse_error_context and proceed with
'%<' and '%>'. Put in a FIXME to put the marker
in later when we sort things out.

Is that acceptable?

Thanks,
Ranjit.

-- 
Ranjit Mathew          Email: rmathew AT gmail DOT com

Bangalore, INDIA.      Web: http://ranjitmathew.tripod.com/


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