diff options
Diffstat (limited to 'gcc/diagnostic.c')
-rw-r--r-- | gcc/diagnostic.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index 3f7bab19d8b..b8e025ac992 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -322,6 +322,9 @@ diagnostic_report_diagnostic (diagnostic_context *context, && !diagnostic_report_warnings_p (location)) return false; + if (diagnostic->kind == DK_NOTE && flag_compare_debug) + return false; + if (diagnostic->kind == DK_PEDWARN) diagnostic->kind = pedantic_warning_kind (); |