This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Your changes to diagnostic machinery
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Cc: gcc at gcc dot gnu dot org
- Date: 18 Jul 2003 21:44:25 +0200
- Subject: Your changes to diagnostic machinery
- Organization: Integrable Solutions
Hi Kaveh,
With your changes to have format-checking of diagnostics, it is no
longer possible to say things like
pedwarn ("%H'%D' is not defined outside of function scope",
&DECL_SOURCE_LOCATION (decl), decl);
in the C front end. I'm getting:
/home/gcc/src/egcs/gcc/c-common.c: In function `fname_decl':
/home/gcc/src/egcs/gcc/c-common.c:1135: warning: unknown conversion type character `D' in format
/home/gcc/src/egcs/gcc/c-common.c:1135: warning: too many arguments for format
which of course triggers a warning regression when bootstrapping.
%D is explicitly listed as diagnostic format specifiers.
I'm going to temporary remove those attributes from the error() and
like unless you have plans to make the format-checking work...
Thanks,
-- Gaby