[12/12] Constify ada-lex.l:attributes
Checks
Commit Message
While examining the Ada parser globals with 'nm', I noticed that the
lexer's "attributes" array should be const. This change moves it into
read-only storage.
---
gdb/ada-lex.l | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -662,7 +662,7 @@ subseqMatch (const char *subseq, const char *str)
}
-static struct { const char *name; int code; }
+static const struct { const char *name; int code; }
attributes[] = {
{ "address", TICK_ADDRESS },
{ "unchecked_access", TICK_ACCESS },