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

cmake/plugins: Enable -Wswitch on GCC #11437

Merged

Conversation

tytan652
Copy link
Collaborator

@tytan652 tytan652 commented Oct 22, 2024

Description

Fixes #11436

This warning is already enabled for Clang which causes issue for things that are usually built with MSVC or GCC (e.g. non-macOS plugins).

obs-nvenc switch warning is also fixed in this commit.
obs-qsv11 has switch warning set to not become errors.

Motivation and Context

Align more Clang and GCC common warnings.

How Has This Been Tested?

Just tried to build OBS with GCC and Clang locally.

Types of changes

  • Tweak (non-breaking change to improve existing functionality)

Checklist:

  • My code has been run through clang-format.
  • I have read the contributing document.
  • My code is not on the master branch.
  • The code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

@RytoEX RytoEX self-assigned this Oct 24, 2024
@RytoEX RytoEX added the Enhancement Improvement to existing functionality label Oct 24, 2024
@RytoEX RytoEX added this to the OBS Studio 31 milestone Oct 24, 2024
cmake/linux/compilerconfig.cmake Outdated Show resolved Hide resolved
This warning is already enabled for Clang which causes issue for things
that are usually built with MSVC or GCC (e.g. non-macOS plugins).

obs-nvenc switch warning is also fixed in this commit.
obs-qsv11 has switch warning set to not become errors.
@tytan652 tytan652 force-pushed the switch_is_on_on_clang_so_gcc_will branch from 30113ce to 2cc916a Compare October 25, 2024 07:39
@RytoEX RytoEX merged commit 52a0486 into obsproject:master Oct 25, 2024
14 checks passed
@tytan652 tytan652 deleted the switch_is_on_on_clang_so_gcc_will branch October 25, 2024 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Improvement to existing functionality
Projects
None yet
3 participants