mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
doc: work around Flex's use of 'register'
The CI uses an old version of Flex.
See 65fa634cdc.
* doc/bison.texi (calc++/scanner.ll): Here.
This commit is contained in:
@@ -11506,9 +11506,13 @@ then the parser's to get the set of defined tokens.
|
||||
#endif
|
||||
|
||||
// Old versions of Flex (2.5.35) use 'register'. Warnings introduced in
|
||||
// GCC 7.
|
||||
#if FLEX_VERSION < 206 && defined __GNUC__ && !defined __clang__ && 7 <= __GNUC__
|
||||
# pragma GCC diagnostic ignored "-Wregister"
|
||||
// GCC 7 and Clang 6.
|
||||
#if FLEX_VERSION < 206
|
||||
# if defined __clang__ && 6 <= __clang_major__
|
||||
# pragma clang diagnostic ignored "-Wdeprecated-register"
|
||||
# elif defined __GNUC__ && 7 <= __GNUC__
|
||||
# pragma GCC diagnostic ignored "-Wregister"
|
||||
# endif
|
||||
#endif
|
||||
%@}
|
||||
@end example
|
||||
|
||||
Reference in New Issue
Block a user