ada-lex: Ignore warnings about register keyword
authorSimon Marchi <simon.marchi@ericsson.com>
Mon, 26 Jun 2017 13:08:35 +0000 (15:08 +0200)
committerSimon Marchi <simon.marchi@ericsson.com>
Mon, 26 Jun 2017 14:51:17 +0000 (16:51 +0200)
commitd1435379df189d1c358ebd9776af8824a9158533
tree6a5249f099b9284841dca89abcd90f906abf7558
parent04e15b4a9462cb1ae819e878a6009829aab8020b
ada-lex: Ignore warnings about register keyword

Some older versions of flex (such as the one shipped with macOS) generate
code that use the register keyword, which clang warns about.  This patch
makes the compiler ignore those warnings for the portion of the code
generated by flex.

gdb/ChangeLog:

* common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
New macro.
* ada-lex.l: Ignore deprecated register warnings.
gdb/ChangeLog
gdb/ada-lex.l
gdb/common/diagnostics.h
This page took 0.02521 seconds and 4 git commands to generate.