Skip to content

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

Closed
@skirpichev

Description

@skirpichev

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

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildThe build process and cross-buildextension-modulesC modules in the Modules dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions