diff options
Diffstat (limited to 'gcc/diagnostic.c')
-rw-r--r-- | gcc/diagnostic.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index 5d10f0cb211..941ddb811f7 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -412,7 +412,19 @@ inform (const char *msgid, ...) /* A warning. Use this for code which is correct according to the relevant language specification but is likely to be buggy anyway. */ void -warning (const char *msgid, ...) +warning (int opt ATTRIBUTE_UNUSED, const char *msgid, ...) +{ + diagnostic_info diagnostic; + va_list ap; + + va_start (ap, msgid); + diagnostic_set_info (&diagnostic, msgid, &ap, input_location, DK_WARNING); + report_diagnostic (&diagnostic); + va_end (ap); +} + +void +warning0 (const char *msgid, ...) { diagnostic_info diagnostic; va_list ap; |