summaryrefslogtreecommitdiff
path: root/gcc/diagnostic.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/diagnostic.h')
-rw-r--r--gcc/diagnostic.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h
index a249574d4aa..1d13eeeae42 100644
--- a/gcc/diagnostic.h
+++ b/gcc/diagnostic.h
@@ -183,9 +183,9 @@ extern diagnostic_context *global_dc;
#define sorrycount diagnostic_kind_count (global_dc, DK_SORRY)
/* Returns nonzero if warnings should be emitted. */
-#define diagnostic_report_warnings_p() \
+#define diagnostic_report_warnings_p(LOC) \
(!inhibit_warnings \
- && !(in_system_header && !warn_system_headers))
+ && !(in_system_header_at (LOC) && !warn_system_headers))
#define report_diagnostic(D) diagnostic_report_diagnostic (global_dc, D)