mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 23:03: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
|
#endif
|
||||||
|
|
||||||
// Old versions of Flex (2.5.35) use 'register'. Warnings introduced in
|
// Old versions of Flex (2.5.35) use 'register'. Warnings introduced in
|
||||||
// GCC 7.
|
// GCC 7 and Clang 6.
|
||||||
#if FLEX_VERSION < 206 && defined __GNUC__ && !defined __clang__ && 7 <= __GNUC__
|
#if FLEX_VERSION < 206
|
||||||
# pragma GCC diagnostic ignored "-Wregister"
|
# if defined __clang__ && 6 <= __clang_major__
|
||||||
|
# pragma clang diagnostic ignored "-Wdeprecated-register"
|
||||||
|
# elif defined __GNUC__ && 7 <= __GNUC__
|
||||||
|
# pragma GCC diagnostic ignored "-Wregister"
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
%@}
|
%@}
|
||||||
@end example
|
@end example
|
||||||
|
|||||||
Reference in New Issue
Block a user