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

Started by Peter Eisentrautover 5 years ago1 messagescomitters
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

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(-)