pgsql: Make our perfect hash functions be valid C++.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Make our perfect hash functions be valid C++.
Date: 2019-05-31 14:40:57
Message-ID: E1hWiiH-0002M4-CB@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9e58705a7f9728f10b2e0f0c9adc6e6ecff7486e

Modified Files
--------------
src/tools/PerfectHash.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2019-05-31 15:47:09 pgsql: Fix assorted header files that failed to compile standalone.
Previous Message Alvaro Herrera 2019-05-31 14:14:16 pgsql: Fix double-phrase typo in message