build: work around warnings in Flex 2.5.35

That's the version on Ubuntu Precise.
See also 1dac131ec4.

* src/flex-scanner.h: Disable -Wdocumentation.
* doc/bison.texi: Turn off a warning triggered by Flex 2.6.4.
This commit is contained in:
Akim Demaille
2018-09-08 06:47:08 +02:00
parent ec99c418a7
commit ea0db44fed
2 changed files with 28 additions and 16 deletions

View File

@@ -11426,8 +11426,8 @@ parser's to get the set of defined tokens.
# define yywrap() 1
// Pacify warnings in yy_init_buffer (observed with Flex 2.6.4)
// and GCC 7.3.0.
#if defined __GNUC__ && 7 <= __GNUC__
// and GCC 6.4.0, 7.3.0.
#if defined __GNUC__ && !defined __clang__ && 6 <= __GNUC__
# pragma GCC diagnostic ignored "-Wnull-dereference"
#endif
%@}