diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2017-06-26 15:08:35 +0200 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2017-06-26 16:51:17 +0200 |
commit | d1435379df189d1c358ebd9776af8824a9158533 (patch) | |
tree | 6a5249f099b9284841dca89abcd90f906abf7558 /gdb/common | |
parent | 04e15b4a9462cb1ae819e878a6009829aab8020b (diff) | |
download | gdb-d1435379df189d1c358ebd9776af8824a9158533.zip gdb-d1435379df189d1c358ebd9776af8824a9158533.tar.gz gdb-d1435379df189d1c358ebd9776af8824a9158533.tar.bz2 |
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.
Diffstat (limited to 'gdb/common')
-rw-r--r-- | gdb/common/diagnostics.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/common/diagnostics.h b/gdb/common/diagnostics.h index 5a63bfd..35bacf2 100644 --- a/gdb/common/diagnostics.h +++ b/gdb/common/diagnostics.h @@ -33,8 +33,11 @@ #ifdef __clang__ # define DIAGNOSTIC_IGNORE_SELF_MOVE DIAGNOSTIC_IGNORE ("-Wself-move") +# define DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER \ + DIAGNOSTIC_IGNORE ("-Wdeprecated-register") #else # define DIAGNOSTIC_IGNORE_SELF_MOVE +# define DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER #endif #endif /* COMMON_DIAGNOSTICS_H */ |