news: update
[bison.git] / tests / testsuite.h
blob46e99dfe6583d88133e6e0881aa0b037623e2a10
1 /* Common definitions to include in the generated parsers. See
2 AT_DATA_SOURCE_PROLOGUE. */
4 /* In C++ pre C++11 it is standard practice to use 0 for the null
5 pointer. But GCC -std=c++98 with -Wzero-as-null-pointer-constant
6 warns about this, although this is just no alternative! Warning
7 introduced in GCC 4.7. */
8 #if defined __cplusplus && __cplusplus < 201103L
9 # if defined __GNUC__ && ! defined __clang__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
10 # pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
11 # endif
12 #endif