Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3e908fb

Browse files
committed
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 thewarnings. But then we also need to add a real externdeclaration (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
1 parent3a66158 commit3e908fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/common/exec.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646

4747
/* Inhibit mingw CRT's auto-globbing of command line arguments */
4848
#if defined(WIN32)&& !defined(_MSC_VER)
49-
externint_CRT_glob=0;/* 0 turns off globbing; 1 turns it on */
49+
externint_CRT_glob;
50+
int_CRT_glob=0;/* 0 turns off globbing; 1 turns it on */
5051
#endif
5152

5253
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp