diff options
Diffstat (limited to 'gcc/diagnostic.h')
-rw-r--r-- | gcc/diagnostic.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h index 992c0c46025..a249574d4aa 100644 --- a/gcc/diagnostic.h +++ b/gcc/diagnostic.h @@ -50,7 +50,8 @@ typedef struct diagnostic_info int option_index; } diagnostic_info; -#define pedantic_error_kind() (flag_pedantic_errors ? DK_ERROR : DK_WARNING) +#define pedantic_warning_kind() (flag_pedantic_errors ? DK_ERROR : DK_WARNING) +#define permissive_error_kind() (flag_permissive ? DK_WARNING : DK_ERROR) /* Forward declarations. */ |