Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 14, 2018

Conversation

ZackerySpytz
Copy link
Contributor

@ZackerySpytz ZackerySpytz commented Mar 14, 2018

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

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

@pitrou
Copy link
Member

pitrou commented Mar 14, 2018

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