Make our perfect hash functions be valid C++.
Tom Lane <tgl@sss.pgh.pa.us>
Make our perfect hash functions be valid C++. While C is happy to cast "const void *" to "const unsigned char *" silently, C++ insists on an explicit cast. Since we put these functions into header files, cpluspluscheck whines about that. Add the cast to pacify it. Discussion: https://postgr.es/m/b517ec3918d645eb950505eac8dd434e@gaz-is.ru
Files
| Path | Change | +/− |
|---|---|---|
| src/tools/PerfectHash.pm | modified | +1 −1 |
Discussion
- compiling PL/pgSQL plugin with C++ 4 messages · 2019-05-30 → 2019-05-31