diff options
Diffstat (limited to 'gcc/diagnostic.c')
-rw-r--r-- | gcc/diagnostic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index 700dd310473..d0ad847ad84 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -866,7 +866,7 @@ format_with_decl (buffer, decl) if (*p == '%') /* Print the name. */ { - const char *n = (DECL_NAME (decl) + const char *const n = (DECL_NAME (decl) ? (*decl_printable_name) (decl, 2) : _("((anonymous))")); output_add_string (buffer, n); |