Skip to content

Curses build warning on macOS #152813

Description

@hrimov

Bug report

Bug description:

While building on macOS I noticed this warning, seems like a false positive specific for clang on macOS:

./Modules/_cursesmodule.c:3141:9: warning: code will never be executed [-Wunreachable-code]
 3141 |         curses_window_set_error(self, "wgetbkgrnd", "getbkgrnd");
      |         ^~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.16new features, bugs and security fixesOS-macextension-modulesC modules in the Modules dirtype-bugAn unexpected behavior, bug, or error

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions