Skip to content
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

New warning in the main (b4f799b1e7): ./Modules/socketmodule.c #128452

Open
skirpichev opened this issue Jan 3, 2025 · 1 comment
Open

New warning in the main (b4f799b1e7): ./Modules/socketmodule.c #128452

skirpichev opened this issue Jan 3, 2025 · 1 comment
Labels
build The build process and cross-build extension-modules C modules in the Modules dir type-bug An unexpected behavior, bug, or error

Comments

@skirpichev
Copy link
Member

skirpichev commented Jan 3, 2025

Bug report

Bug description:

./configure -q && make -s
give me

[...]
./Modules/socketmodule.c: In function ‘sock_accept’:
./Modules/socketmodule.c:474:23: warning: ‘ctx.result’ may be used uninitialized [-Wmaybe-uninitialized]
  474 | #  define SOCKETCLOSE close
      |                       ^~~~~
./Modules/socketmodule.c:2939:24: note: ‘ctx.result’ was declared here
 2939 |     struct sock_accept ctx;
      |                        ^~~
$ cc --version
cc (Debian 12.2.0-14) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

@skirpichev skirpichev added the type-bug An unexpected behavior, bug, or error label Jan 3, 2025
@picnixz picnixz added extension-modules C modules in the Modules dir build The build process and cross-build labels Jan 3, 2025
@tomasr8
Copy link
Member

tomasr8 commented Jan 3, 2025

#128304 might be related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build extension-modules C modules in the Modules dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants