This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Another issue with diagnostic format-checker
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: gdr at integrable-solutions dot net
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 19 Jul 2003 10:02:37 -0400 (EDT)
- Subject: Re: Another issue with diagnostic format-checker
- References: <m3oezqdbhh.fsf@uniton.integrable-solutions.net>
> 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