From: Tom Lane Date: Sat, 9 Jul 2022 23:25:53 +0000 (-0400) Subject: Exclude nodetags.h from headerscheck and cpluspluscheck. X-Git-Tag: REL_16_BETA1~2301 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=301b06dd754007546305030683f439f675e40214;p=thirdparty%2Fpostgresql.git Exclude nodetags.h from headerscheck and cpluspluscheck. Since this file contains just a fragment of an enum declaration, it can't be compiled on its own. --- diff --git a/src/tools/pginclude/cpluspluscheck b/src/tools/pginclude/cpluspluscheck index 3137cddf118..6f336deae8a 100755 --- a/src/tools/pginclude/cpluspluscheck +++ b/src/tools/pginclude/cpluspluscheck @@ -97,6 +97,10 @@ do # sepgsql.h depends on headers that aren't there on most platforms. test "$f" = contrib/sepgsql/sepgsql.h && continue + # nodetags.h cannot be included standalone: it's just a code fragment. + test "$f" = src/include/nodes/nodetags.h && continue + test "$f" = src/backend/nodes/nodetags.h && continue + # These files are not meant to be included standalone, because # they contain lists that might have multiple use-cases. test "$f" = src/include/access/rmgrlist.h && continue diff --git a/src/tools/pginclude/headerscheck b/src/tools/pginclude/headerscheck index ee4e593263b..ae60ef09e68 100755 --- a/src/tools/pginclude/headerscheck +++ b/src/tools/pginclude/headerscheck @@ -93,6 +93,10 @@ do # sepgsql.h depends on headers that aren't there on most platforms. test "$f" = contrib/sepgsql/sepgsql.h && continue + # nodetags.h cannot be included standalone: it's just a code fragment. + test "$f" = src/include/nodes/nodetags.h && continue + test "$f" = src/backend/nodes/nodetags.h && continue + # These files are not meant to be included standalone, because # they contain lists that might have multiple use-cases. test "$f" = src/include/access/rmgrlist.h && continue