Skip to content

Commit 9f050c0

Browse files
committed
Exclude common/int128.h from cpluspluscheck
It uses static assertions, which are not supported under C++ in this branch. This change only goes into the 9.4 branch, because 9.5 and beyond will primarily use the USE_NATIVE_INT128 branch, so cpluspluscheck isn't bothered. In PG11 we will have C++ support for static assertions, so the issue will go away altogether.
1 parent b37422d commit 9f050c0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/tools/pginclude/cpluspluscheck

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ trap 'rm -rf $tmp' 0 1 2 3 15
1515
# rusagestub.h is also platform-specific, and will be included by
1616
# utils/pg_rusage.h if necessary.
1717
# access/rmgrlist.h is not meant to be included standalone.
18+
# common/int128.h uses static assertions, which are not supported
19+
# under C++.
1820
# regex/regerrs.h is not meant to be included standalone.
1921
# parser/gram.h will be included by parser/gramparse.h.
2022
# parser/kwlist.h is not meant to be included standalone.
@@ -26,6 +28,7 @@ for f in `find src/include src/interfaces/libpq/libpq-fe.h src/interfaces/libpq/
2628
grep -v -e ^src/include/port/ \
2729
-e ^src/include/rusagestub.h -e ^src/include/regex/regerrs.h \
2830
-e ^src/include/access/rmgrlist.h \
31+
-e ^src/include/common/int128.h \
2932
-e ^src/include/parser/gram.h -e ^src/include/parser/kwlist.h \
3033
-e ^src/include/pg_trace.h -e ^src/include/utils/probes.h`
3134
do

0 commit comments

Comments
 (0)