Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
6a8c3139
Commit
6a8c3139
authored
Apr 05, 2019
by
Victor Stinner
Committed by
GitHub
Apr 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-36301: Fix _PyPreConfig_Read() compiler warning (GH-12695)
Initialize init_utf8_mode earlier to fix a compiler warning.
parent
176d2636
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Python/preconfig.c
Python/preconfig.c
+5
-4
No files found.
Python/preconfig.c
View file @
6a8c3139
...
...
@@ -720,6 +720,11 @@ _PyPreConfig_Read(_PyPreConfig *config, const _PyArgv *args)
_Py_SetLocaleFromEnv
(
LC_CTYPE
);
_PyPreCmdline
cmdline
=
_PyPreCmdline_INIT
;
int
init_utf8_mode
=
Py_UTF8Mode
;
#ifdef MS_WINDOWS
int
init_legacy_encoding
=
Py_LegacyWindowsFSEncodingFlag
;
#endif
if
(
args
)
{
err
=
_PyPreCmdline_SetArgv
(
&
cmdline
,
args
);
if
(
_Py_INIT_FAILED
(
err
))
{
...
...
@@ -727,10 +732,6 @@ _PyPreConfig_Read(_PyPreConfig *config, const _PyArgv *args)
}
}
int
init_utf8_mode
=
Py_UTF8Mode
;
#ifdef MS_WINDOWS
int
init_legacy_encoding
=
Py_LegacyWindowsFSEncodingFlag
;
#endif
int
locale_coerced
=
0
;
int
loops
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment