Another issue with diagnostic format-checker
Kaveh R. Ghazi
ghazi@caip.rutgers.edu
Sat Jul 19 15:52:00 GMT 2003
> From: Gabriel Dos Reis <gdr@integrable-solutions.net>
>
> Hi,
>
> I came across another issue: The file c-pragama.c is a C and
> Objective-C specific file. Yet, the diagnostic format-specifier
> checher doesn't want to let me use %D there -- %D is explicilty listed
> as a format specifier for the C and Objective-C front ends.
>
> How am I supposed to convince it to let '%D' pass through?
>
> Thanks,
> -- Gaby
You must define GCC_DIAG_STYLE to __gcc_cdiag__ before including
toplev.h. You can either do it explicitly or by including c-tree.h
(as most other C frontend file do.)
--Kaveh
--
Kaveh R. Ghazi ghazi@caip.rutgers.edu
More information about the Gcc
mailing list