From cc25464763f0211e59a209eb50a7b7a79449051f Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 24 Jan 2020 12:23:06 +0100 Subject: [PATCH] Add exclusion to headercheck src/include/common/unicode_combining_table.h is currently not meant to be included standalone. Things could be refactored to allow it, but that would be beyond the present purpose. So adding an exclusion here seems best. Discussion: https://www.postgresql.org/message-id/10754.1579535012@sss.pgh.pa.us --- src/tools/pginclude/cpluspluscheck | 3 +++ src/tools/pginclude/headerscheck | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/tools/pginclude/cpluspluscheck b/src/tools/pginclude/cpluspluscheck index dc45bd087b..531fab904c 100755 --- a/src/tools/pginclude/cpluspluscheck +++ b/src/tools/pginclude/cpluspluscheck @@ -110,6 +110,9 @@ do test "$f" = src/pl/plpython/spiexceptions.h && continue test "$f" = src/pl/tcl/pltclerrcodes.h && continue + # Also not meant to be included standalone. + test "$f" = src/include/common/unicode_combining_table.h && continue + # We can't make these Bison output files compilable standalone # without using "%code require", which old Bison versions lack. # parser/gram.h will be included by parser/gramparse.h anyway. diff --git a/src/tools/pginclude/headerscheck b/src/tools/pginclude/headerscheck index 440bde88a7..d652d6b6f9 100755 --- a/src/tools/pginclude/headerscheck +++ b/src/tools/pginclude/headerscheck @@ -106,6 +106,9 @@ do test "$f" = src/pl/plpython/spiexceptions.h && continue test "$f" = src/pl/tcl/pltclerrcodes.h && continue + # Also not meant to be included standalone. + test "$f" = src/include/common/unicode_combining_table.h && continue + # We can't make these Bison output files compilable standalone # without using "%code require", which old Bison versions lack. # parser/gram.h will be included by parser/gramparse.h anyway.