This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: Another issue with diagnostic format-checker


 > 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


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