aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lex.l
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-03-14 12:25:42 -0600
committerTom Tromey <tromey@adacore.com>2024-04-02 11:24:27 -0600
commit051889c8104c3c959b903d08e9afbcb7e9670c43 (patch)
tree3b1bb88941f2cdf4b8298e3473805ee6ffef5cd5 /gdb/ada-lex.l
parent0298128e07b7e58f93d745b657413e41766de3cb (diff)
downloadgdb-051889c8104c3c959b903d08e9afbcb7e9670c43.zip
gdb-051889c8104c3c959b903d08e9afbcb7e9670c43.tar.gz
gdb-051889c8104c3c959b903d08e9afbcb7e9670c43.tar.bz2
Constify ada-lex.l:attributes
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.
Diffstat (limited to 'gdb/ada-lex.l')
-rw-r--r--gdb/ada-lex.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-lex.l b/gdb/ada-lex.l
index 4e99eaa..1b1aaf8 100644
--- a/gdb/ada-lex.l
+++ b/gdb/ada-lex.l
@@ -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 },