Skip to content

bpo-33021: Fix GCC 7 warning (-Wmaybe-uninitialized) in mmapmodule.c#6117

Merged
pitrou merged 1 commit into
python:masterfrom
ZackerySpytz:mmapmodule_warning
Mar 14, 2018
Merged

bpo-33021: Fix GCC 7 warning (-Wmaybe-uninitialized) in mmapmodule.c#6117
pitrou merged 1 commit into
python:masterfrom
ZackerySpytz:mmapmodule_warning

Conversation

@ZackerySpytz

@ZackerySpytz ZackerySpytz commented Mar 14, 2018

Copy link
Copy Markdown
Contributor

Introduced in 4484f9d:

cpython/Modules/mmapmodule.c: In function ‘new_mmap_object’:
cpython/Modules/mmapmodule.c:1126:18: warning: ‘fstat_result’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if (fd != -1 && fstat_result == 0 && S_ISREG(status.st_mode)) {

https://bugs.python.org/issue33021

@bedevere-bot

Copy link
Copy Markdown

@pitrou: Please replace # with GH- in the commit message next time. Thanks!

@pitrou

pitrou commented Mar 14, 2018

Copy link
Copy Markdown
Member

Thanks for posting this!

@ZackerySpytz ZackerySpytz deleted the mmapmodule_warning branch March 14, 2018 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants