[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
c++: I'm tired of Flex's warnings
From: |
Akim Demaille |
Subject: |
c++: I'm tired of Flex's warnings |
Date: |
Mon, 4 Jan 2021 07:32:32 +0100 |
commit 87339599541c71fe9979783d8bb5698372082b4d
Author: Akim Demaille <akim.demaille@gmail.com>
Date: Sun Jan 3 20:08:35 2021 +0100
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.
diff --git a/doc/bison.texi b/doc/bison.texi
index f6ac5f86..0a55f343 100644
--- a/doc/bison.texi
+++ b/doc/bison.texi
@@ -13586,6 +13586,14 @@ then the parser's to get the set of defined tokens.
# pragma GCC diagnostic ignored "-Wsign-conversion"
# 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 ignore
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- c++: I'm tired of Flex's warnings,
Akim Demaille <=