Skip to content

-Wshadow or -Wno-shadow? #132

@ipatix

Description

@ipatix

Operating System Info

Ubuntu 24.04

Other OS

No response

OBS Studio Version

31.0.0-rc1

OBS Studio Version (Other)

No response

OBS Studio Log URL

N/A

OBS Studio Crash Log URL

No response

Expected Behavior

see below

Current Behavior

see below

Steps to Reproduce

see below

Anything else we should know?

I'm sorry, but it seems once again the issue template really does not apply to my case, anyway:

I discovered this while compiling my own plugin that errors are raised due to -Wshadow. Now, this may seem perfectly fine, but this led me to the place where this warning is enabled, and it leads to here:

Now, what I find confusing about this is that just a few lines above -Wno-shadow is specified:

This question goes to you, the maintainers: So is this warning supposed to be enabled or disabled?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions