aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lex.l
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/ada-lex.l')
-rw-r--r--gdb/ada-lex.l4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/ada-lex.l b/gdb/ada-lex.l
index 1e4bc20..edf2880 100644
--- a/gdb/ada-lex.l
+++ b/gdb/ada-lex.l
@@ -45,7 +45,9 @@ POSEXP (e"+"?{NUM10})
/* Some old versions of flex generate code that uses the "register" keyword,
which clang warns about. This was observed for example with flex 2.5.35,
- as shipped with macOS 10.12. */
+ as shipped with macOS 10.12. The same happens with flex 2.5.37 and g++ 11
+ which defaults to ISO C++17, that does not allow register storage class
+ specifiers. */
DIAGNOSTIC_PUSH
DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER