diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2002-06-20 16:59:01 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2002-06-20 16:59:01 +0000 |
commit | ef9772c835143b69b86dffcc57208de414259c83 (patch) | |
tree | ff2f4da54864332d69b55509d7662cfe5d472427 /gcc/diagnostic.c | |
parent | b0dd480873e4c91f05295658b317491ddeae391b (diff) | |
download | gcc-ef9772c835143b69b86dffcc57208de414259c83.zip gcc-ef9772c835143b69b86dffcc57208de414259c83.tar.gz gcc-ef9772c835143b69b86dffcc57208de414259c83.tar.bz2 |
diagnostic.c (diagnostic_kind_text): Const-ify.
* diagnostic.c (diagnostic_kind_text): Const-ify.
* gengtype.c (lang_names): Likewise.
From-SVN: r54840
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 db05103..120441f 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -832,7 +832,7 @@ char * diagnostic_build_prefix (diagnostic) diagnostic_info *diagnostic; { - static const char *diagnostic_kind_text[] = { + static const char *const diagnostic_kind_text[] = { #define DEFINE_DIAGNOSTIC_KIND(K, T) (T), #include "diagnostic.def" #undef DEFINE_DIAGNOSTIC_KIND |