diff options
author | Gabriel Dos Reis <gdr@nerim.net> | 2002-08-04 14:38:40 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2002-08-04 14:38:40 +0000 |
commit | 04c1334cba6f0cf25e434f1b548c07f4a236140f (patch) | |
tree | 98f4eff67ab94a378a28f7aa4565e5321de5c5a9 /gcc/diagnostic.c | |
parent | e6858a844797a41452b08bc0a58791fc4f061e51 (diff) | |
download | gcc-04c1334cba6f0cf25e434f1b548c07f4a236140f.zip gcc-04c1334cba6f0cf25e434f1b548c07f4a236140f.tar.gz gcc-04c1334cba6f0cf25e434f1b548c07f4a236140f.tar.bz2 |
diagnostic.c (inform): New function.
* diagnostic.c (inform): New function.
* diagnostic.h (inform): Declare.
From-SVN: r56022
Diffstat (limited to 'gcc/diagnostic.c')
-rw-r--r-- | gcc/diagnostic.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index 2343d24..040af9b 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -1399,6 +1399,20 @@ default_diagnostic_finalizer (context, diagnostic) } void +inform VPARAMS ((const char *msgid, ...)) +{ + diagnostic_info diagnostic; + + VA_OPEN (ap, msgid); + VA_FIXEDARG (ap, const char *, msgid); + + diagnostic_set_info (&diagnostic, msgid, &ap, input_filename, lineno, + DK_NOTE); + report_diagnostic (&diagnostic); + VA_CLOSE (ap); +} + +void warn_deprecated_use (node) tree node; { |