mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
doc: -Wzero-as-null-pointer-constant was added to GCC 4.7
It is not supported by previous versions. See https://www.gnu.org/software/gcc/gcc-4.7/changes.html Reported by Nelson H. F. Beebe. * doc/bison.texi (Calc++ Scanner): here.
This commit is contained in:
@@ -11836,7 +11836,7 @@ then the parser's to get the set of defined tokens.
|
|||||||
// Of course, when compiling C as C++, expect warnings about NULL.
|
// Of course, when compiling C as C++, expect warnings about NULL.
|
||||||
#if defined __clang__
|
#if defined __clang__
|
||||||
# pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant"
|
# pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant"
|
||||||
#elif defined __GNUC__
|
#elif defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
|
||||||
# pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
|
# pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user