pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix -Wcast-function-type warnings on Windows/MinGW
Date: Wed, 21 Oct 2020 06:18:41 +0000
Message-ID: <E1kV7SL-0007Cp-LO@gemulon.postgresql.org> (raw)

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



Message-ID: <E1kV7SL-0007Cp-LO@gemulon.postgresql.org>
Permalink:  ../E1kV7SL-0007Cp-LO@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kV7SL-0007Cp-LO@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: Fix -Wcast-function-type warnings on Windows/MinGW
  In-Reply-To: <E1kV7SL-0007Cp-LO@gemulon.postgresql.org>
  References: <E1kV7SL-0007Cp-LO@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox