diff options
author | Peter Eisentraut | 2020-10-21 06:17:51 +0000 |
---|---|---|
committer | Peter Eisentraut | 2020-10-21 06:17:51 +0000 |
commit | 8a58347a3c10126ce9eb38872a46c55e91faa174 (patch) | |
tree | 6df4f43fe6027a6df8ce014e5e4735b38f6389ee /src/port/win32env.c | |
parent | 19ae53c92d5f5bdfb971d560a562e84c5f65c8b0 (diff) |
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.
Diffstat (limited to 'src/port/win32env.c')
-rw-r--r-- | src/port/win32env.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/port/win32env.c b/src/port/win32env.c index 2021f3d5aa6..177488cc67e 100644 --- a/src/port/win32env.c +++ b/src/port/win32env.c @@ -95,7 +95,7 @@ pgwin32_putenv(const char *envval) { PUTENVPROC putenvFunc; - putenvFunc = (PUTENVPROC) GetProcAddress(hmodule, "_putenv"); + putenvFunc = (PUTENVPROC) (pg_funcptr_t) GetProcAddress(hmodule, "_putenv"); if (putenvFunc) putenvFunc(envval); FreeLibrary(hmodule); |