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:
Akim Demaille
2018-09-22 13:57:48 +02:00
parent a990213582
commit 154bc7ddac

View File

@@ -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