diff options
Diffstat (limited to 'gcc/diagnostic.def')
-rw-r--r-- | gcc/diagnostic.def | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/diagnostic.def b/gcc/diagnostic.def index 53179e445cd..9566491ca2a 100644 --- a/gcc/diagnostic.def +++ b/gcc/diagnostic.def @@ -42,4 +42,6 @@ DEFINE_DIAGNOSTIC_KIND (DK_DEBUG, "debug: ") prefix does not matter. */ DEFINE_DIAGNOSTIC_KIND (DK_PEDWARN, "pedwarn: ") DEFINE_DIAGNOSTIC_KIND (DK_PERMERROR, "permerror: ") - +/* This one is just for counting DK_WARNING promoted to DK_ERROR + due to -Werror and -Werror=warning. */ +DEFINE_DIAGNOSTIC_KIND (DK_WERROR, "error: ") |