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.
This commit is contained in:
Mark Wielaard
2020-08-22 00:20:55 +02:00
parent cee12b773a
commit b8fff44e0e
4 changed files with 17 additions and 1 deletions

View File

@ -63,6 +63,11 @@
#elif defined (__GNUC__) /* GCC */
# if __GNUC__ >= 7
# define DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER \
DIAGNOSTIC_IGNORE ("-Wregister")
# endif
# define DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION \
DIAGNOSTIC_IGNORE ("-Wstringop-truncation")