pgsql: Fix -Wcast-function-type warnings on Windows/MinGW

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix -Wcast-function-type warnings on Windows/MinGW
Date: 2020-10-21 06:18:41
Message-ID: E1kV7SL-0007Cp-LO@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix -Wcast-function-type warnings on Windows/MinGW

After de8feb1f3a23465b5737e8a8c160e8ca62f61339, some warnings remained
that were only visible when using GCC on Windows. Fix those as well.

Note that the ecpg test source files don't use the full pg_config.h,
so we can't use pg_funcptr_t there but have to do it the long way.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8a58347a3c10126ce9eb38872a46c55e91faa174

Modified Files
--------------
src/backend/libpq/auth.c | 4 ++--
src/backend/port/win32/crashdump.c | 2 +-
src/bin/pg_ctl/pg_ctl.c | 12 ++++++------
src/common/restricted_token.c | 2 +-
src/interfaces/ecpg/test/expected/thread-thread.c | 2 +-
src/interfaces/ecpg/test/expected/thread-thread_implicit.c | 2 +-
src/interfaces/ecpg/test/thread/thread.pgc | 2 +-
src/interfaces/ecpg/test/thread/thread_implicit.pgc | 2 +-
src/port/getaddrinfo.c | 12 ++++++------
src/port/win32env.c | 2 +-
src/port/win32stat.c | 2 +-
11 files changed, 22 insertions(+), 22 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2020-10-21 12:25:33 pgsql: Remove obsolete ifdefs
Previous Message Michael Paquier 2020-10-21 00:24:47 pgsql: Review format of code generated by PerfectHash.pm