diff options
author | kan <kan@FreeBSD.org> | 2003-07-11 03:40:53 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2003-07-11 03:40:53 +0000 |
commit | b2a8872fbe1ec1c49094559ac7b78e6ea4ab7180 (patch) | |
tree | f6b0610f4a17fd26aa234354f050080f789861a4 /contrib/gcc/c-errors.c | |
parent | 52e69d78eee5612ac195e0701a5cebe40d1ab0e1 (diff) | |
download | FreeBSD-src-b2a8872fbe1ec1c49094559ac7b78e6ea4ab7180.zip FreeBSD-src-b2a8872fbe1ec1c49094559ac7b78e6ea4ab7180.tar.gz |
Gcc 3.3.1-pre as of 2003-07-11.
Diffstat (limited to 'contrib/gcc/c-errors.c')
-rw-r--r-- | contrib/gcc/c-errors.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/contrib/gcc/c-errors.c b/contrib/gcc/c-errors.c index 3f030f9..1bd52a8 100644 --- a/contrib/gcc/c-errors.c +++ b/contrib/gcc/c-errors.c @@ -32,13 +32,12 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA void pedwarn_c99 VPARAMS ((const char *msgid, ...)) { - diagnostic_context dc; - + diagnostic_info diagnostic; VA_OPEN (ap, msgid); VA_FIXEDARG (ap, const char *, msgid); - set_diagnostic_context (&dc, msgid, &ap, input_filename, lineno, - !flag_isoc99 || !flag_pedantic_errors); - report_diagnostic (&dc); + diagnostic_set_info (&diagnostic, msgid, &ap, input_filename, lineno, + flag_isoc99 ? pedantic_error_kind () : DK_WARNING); + report_diagnostic (&diagnostic); VA_CLOSE (ap); } |