diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2025-10-01 17:13:52 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2025-10-01 17:13:52 +0200 |
commit | 3e908fb54ff8fa857180bc212ca79c7bd95dcc2c (patch) | |
tree | d9a8108598382511e5f6c287774b640c6015bfa6 /src/port/win32security.c | |
parent | 3a661580685964dd2ca192306a202934f268fc5c (diff) |
Fix compiler warnings around _CRT_glob
Newer compilers warned about
extern int _CRT_glob = 0;
which is indeed a mysterious C construction, as it combines "extern"
and an initialization. It turns out that according to the C standard,
the "extern" is ignored here, so we can remove it to resolve the
warnings. But then we also need to add a real extern
declaration (without initializer) to satisfy
-Wmissing-variable-declarations.
(Note that this code is only active on MinGW.)
Discussion: https://www.postgresql.org/message-id/1053279b-da01-4eb4-b7a3-da6b5d8f73d1%40eisentraut.org
Diffstat (limited to 'src/port/win32security.c')
0 files changed, 0 insertions, 0 deletions