-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
aja: Fix format-security warning which lead to a build error on some Linux distributions #5766
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
On some Linux distributions -Werror=format-security is set when building package keeping OBS Studio from being built with AJA plugins.
Also needed under Ubuntu from what I have seen by trying to build the PPA. |
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Jul 18, 2022
Some Linux package build system enables it. obsproject#5766
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Jul 18, 2022
Some Linux package build system enables it. obsproject#5766
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Jul 18, 2022
Some Linux package build system enables it. obsproject#5766
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Jul 18, 2022
Deprecation warnings are not treated as errors. -Wformat-securityis enabled, some Linux packages build system have it enabled. obsproject#5766
6 tasks
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Jul 18, 2022
Deprecation warnings are not treated as errors. -Wformat-securityis enabled, some Linux packages build system have it enabled. obsproject#5766
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Jul 19, 2022
Deprecation warnings are not treated as errors. -Wformat-securityis enabled, some Linux packages build system have it enabled. obsproject#5766
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Jul 19, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Jul 19, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Jul 19, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Jul 19, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Jul 21, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Jul 21, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 Also ensure that null conversion warning are enabled (C++ only for GCC) because its enablement by default can depend on the CMake generator.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Jul 21, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 Also ensure that null conversion warning are enabled (C++ only for GCC) because its enablement by default can depend on the CMake generator.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Jul 21, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 Also ensure that null conversion warning are enabled (C++ only for GCC) because its enablement by default can depend on the CMake generator.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Jul 22, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 Also ensure that null conversion warning are enabled (C++ only for GCC) because its enablement by default can depend on the CMake generator.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Jul 23, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 Also ensure that null conversion warning are enabled (C++ only for GCC) because its enablement by default can depend on the CMake generator.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Jul 24, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 Also ensure that null conversion warning are enabled (C++ only for GCC) because its enablement by default can depend on the CMake generator.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Jul 24, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 Also ensure that null conversion warning are enabled (C++ only for GCC) because its enablement by default can depend on the CMake generator.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Jul 24, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 Also ensure that null conversion warning are enabled (C++ only for GCC) because its enablement by default can depend on the CMake generator.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Aug 27, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Sep 1, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator. -Wno-error=deprecated-declarations is added on Linux/FreeBSD for release builds to help packager.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Sep 19, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator. -Wno-error=deprecated-declarations is added on Linux/FreeBSD for release builds to help packager.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Oct 2, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator. -Wno-error=deprecated-declarations is added on Linux/FreeBSD for release builds to help packager.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Oct 18, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator. -Wno-error=deprecated-declarations is added on Linux/FreeBSD for release builds to help packager.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Oct 21, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator. -Wno-error=deprecated-declarations is added on Linux/FreeBSD for release builds to help packager.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Oct 25, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator. -Wno-error=deprecated-declarations is added on Linux/FreeBSD for release builds to help packager.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Oct 25, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator. -Wno-error=deprecated-declarations is added on Linux/FreeBSD for release builds to help packager.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Oct 26, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator. -Wno-error=deprecated-declarations is added on Linux/FreeBSD for release builds to help packager.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Oct 31, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator. -Wno-error=deprecated-declarations is added on Linux/FreeBSD for release builds to help packager.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Nov 5, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator. -Wno-error=deprecated-declarations is added on Linux/FreeBSD for release builds to help packager.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Nov 5, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Nov 5, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Nov 11, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator. -Wswitch is enabled but it is keep as a warning. It was already enabled with Clang. If Clang has -Wshorten-64-to-32 enabled, keep it as warnings.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Nov 11, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator. -Wswitch is enabled but it is keep as a warning. It was already enabled with Clang. If Clang has -Wshorten-64-to-32 enabled, keep it as warnings.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Nov 12, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator. -Wswitch is enabled but it is keep as a warning. It was already enabled with Clang. If Clang has -Wshorten-64-to-32 enabled, keep it as warnings.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Nov 18, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator. -Wswitch is enabled but it is keep as a warning. It was already enabled with Clang. If Clang has -Wshorten-64-to-32 enabled, keep it as warnings.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Nov 18, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator. -Wswitch is enabled but it is keep as a warning. It was already enabled with Clang. If Clang has -Wshorten-64-to-32 enabled, keep it as warnings.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Nov 18, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator. -Wswitch is enabled but it is keep as a warning. It was already enabled with Clang. If Clang has -Wshorten-64-to-32 enabled, keep it as warnings.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Nov 20, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator. -Wswitch is enabled but it is keep as a warning. It was already enabled with Clang. If Clang has -Wshorten-64-to-32 enabled, keep it as warnings.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Nov 22, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator. -Wswitch is enabled but it is keep as a warning. It was already enabled with Clang. If Clang has -Wshorten-64-to-32 enabled, keep it as warnings.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Dec 10, 2022
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator. -Wswitch is enabled but it is keep as a warning. It was already enabled with Clang. If Clang has -Wshorten-64-to-32 enabled, keep it as warnings.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Jan 7, 2023
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator. -Wswitch is enabled but it is keep as a warning. It was already enabled with Clang. If Clang has -Wshorten-64-to-32 enabled, keep it as warnings.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Jan 13, 2023
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator. -Wswitch is enabled but it is keep as a warning. It was already enabled with Clang. If Clang has -Wshorten-64-to-32 enabled, keep it as warnings.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Jan 15, 2023
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator. -Wswitch is enabled but it is keep as a warning. It was already enabled with Clang. If Clang has -Wshorten-64-to-32 enabled, keep it as warnings.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Jan 18, 2023
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator. -Wswitch is enabled but it is kept as a warning. It was already enabled with Clang. If Clang has -Wshorten-64-to-32 enabled, keep it as warnings.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Jan 18, 2023
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator. -Wswitch is enabled but it is kept as a warning. It was already enabled with Clang. If Clang has -Wshorten-64-to-32 enabled, keep it as warnings.
tytan652
added a commit
to tytan652/obs-studio
that referenced
this pull request
Jan 19, 2023
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator. -Wswitch is enabled but it is kept as a warning. It was already enabled with Clang. If Clang has -Wshorten-64-to-32 enabled, keep it as warnings.
RytoEX
pushed a commit
to tytan652/obs-studio
that referenced
this pull request
Jan 19, 2023
-Wformat-security is enabled, some Linux packages build system have it enabled. obsproject#5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator. -Wswitch is enabled but it is kept as a warning. It was already enabled with Clang. If Clang has -Wshorten-64-to-32 enabled, keep it as warnings.
RytoEX
pushed a commit
that referenced
this pull request
Jan 19, 2023
-Wformat-security is enabled, some Linux packages build system have it enabled. #5766 -Wunused-parameter is enabled too. Also ensure that null conversion (C++ only for GCC) is enabled because its enablement by default can depend on the CMake generator. -Wswitch is enabled but it is kept as a warning. It was already enabled with Clang. If Clang has -Wshorten-64-to-32 enabled, keep it as warnings.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Issue introduced by f09137a.
On some Linux distributions
-Werror=format-security
is set when building package keeping OBS Studio from being built with AJA plugins.Motivation and Context
Allow OBS Studio to be build with
-Werror=format-security
set. Which is the case on ArchLinux build system.How Has This Been Tested?
Build OBS Studio with
makepkg
.Types of changes
Checklist: