ada-lex.l: Ignore register diagnostic also for g++ defaulting to ISO C++17
authorMark Wielaard <mark@klomp.org>
Fri, 21 Aug 2020 22:20:55 +0000 (00:20 +0200)
committerMark Wielaard <mark@klomp.org>
Sun, 23 Aug 2020 10:14:34 +0000 (12:14 +0200)
commitb8fff44e0e2e43e1823413eec7c5f6fa9d219ce7
tree4cb2342ee453f6e5826e0305f3130469066e1f2b
parentcee12b773a5b34883884879b9fec091bbb02bc97
ada-lex.l: Ignore register diagnostic also for g++ defaulting to ISO C++17

Building with a really old flex and a really new g++ is probably not
recommended, but it should not cause compile errors.

gdb/ChangeLog:

* ada-lex.l: Extend register warnings diagnostics comment for g++.

include/ChangeLog:

* diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER): Also define
for GCC version 7.0 or higher.
gdb/ChangeLog
gdb/ada-lex.l
include/ChangeLog
include/diagnostics.h