Re: tableam.h fails cpluspluscheck

2019-05-31 Thread Tom Lane
Andres Freund writes: > On 2019-05-30 14:01:00 -0400, Tom Lane wrote: >> Kinda looks like you can't get away with using "struct" on a forward >> declaration of something that is not actually a struct type. > Ugh. Odd that only C++ compilers complain. I just removed the typedef, > it's not needed

Re: tableam.h fails cpluspluscheck

2019-05-30 Thread Andres Freund
Hi, On 2019-05-30 14:01:00 -0400, Tom Lane wrote: > Using Apple's clang as c++ compiler: > > In file included from /tmp/cpluspluscheck.KejiIw/test.cpp:3: > ./src/include/access/tableam.h:144:16: error: typedef redefinition with > different types ('void (*)(Relation, HeapTuple, Datum *, bool *, b