aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2020-06-03 11:51:12 +0200
committerIain Buclaw <ibuclaw@gdcproject.org>2021-04-06 19:43:31 +0200
commit4993d0265ef8ff1a75dfb86cd6da95ccc7fa6328 (patch)
treeba4f45417d005bf73ef989adb5668a09766c4e6f /gcc
parentdddf3bb0c37e8ff7f2c0488a46edfa18716d8a00 (diff)
downloadgcc-4993d0265ef8ff1a75dfb86cd6da95ccc7fa6328.zip
gcc-4993d0265ef8ff1a75dfb86cd6da95ccc7fa6328.tar.gz
gcc-4993d0265ef8ff1a75dfb86cd6da95ccc7fa6328.tar.bz2
d: Increment gaggedWarnings if warning or deprecation message was suppressed
gcc/d/ChangeLog: * d-diagnostic.cc (vwarning): Increment gaggedWarnings if warning message was suppressed. (vdeprecation): Likewise for deprecation messages.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/d/d-diagnostic.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/d/d-diagnostic.cc b/gcc/d/d-diagnostic.cc
index 659fae2..3bf5a53 100644
--- a/gcc/d/d-diagnostic.cc
+++ b/gcc/d/d-diagnostic.cc
@@ -239,6 +239,8 @@ vwarning (const Loc &loc, const char *format, va_list ap)
d_diagnostic_report_diagnostic (loc, 0, format, ap, DK_WARNING, false);
}
+ else if (global.gag)
+ global.gaggedWarnings++;
}
/* Print supplementary message about the last warning with explicit location
@@ -297,6 +299,8 @@ vdeprecation (const Loc &loc, const char *format, va_list ap,
DK_WARNING, false);
free (xformat);
}
+ else if (global.gag)
+ global.gaggedWarnings++;
}
/* Print supplementary message about the last deprecation with explicit