mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
c++: I'm tired of Flex's warnings
* doc/bison.texi: Disable another warning I'm tired to see. New releases would be most welcome.
This commit is contained in:
@@ -13586,6 +13586,14 @@ then the parser's to get the set of defined tokens.
|
|||||||
# pragma GCC diagnostic ignored "-Wsign-conversion"
|
# pragma GCC diagnostic ignored "-Wsign-conversion"
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Flex 2.6.4, GCC 9
|
||||||
|
// warning: useless cast to type 'int' [-Wuseless-cast]
|
||||||
|
// 1361 | YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
|
||||||
|
// | ^
|
||||||
|
#if defined GCC_VERSION && 900 <= GCC_VERSION
|
||||||
|
# pragma GCC diagnostic ignored "-Wuseless-cast"
|
||||||
|
#endif
|
||||||
%@}
|
%@}
|
||||||
@end example
|
@end example
|
||||||
@end ignore
|
@end ignore
|
||||||
|
|||||||
Reference in New Issue
Block a user