Repository navigation
fix(libobs-opengl): Make the Wayland windowinfo factory static (#2703) - #2710
Merged
Merged
Conversation
…red (#2703) RED: ci/test_platform_missing_prototypes.py fails on master with libobs-opengl/gl-wayland-egl.c.h:90: gl_wayland_egl_windowinfo_create — a file-scope definition that is neither static nor declared in a header. The app builds are the only lanes that compile it and they stop there with -Werror=missing-prototypes.
GREEN: the helper is only reached through its gl_winsys_vtable slot, so it is file-scope private; the X11 sibling gl_x11_egl_windowinfo_create is already static. This clears the next -Wmissing-prototypes failure the Ubuntu and Flatpak app lanes hit after #2704.
Member
Author
|
Dispatch evidence on this head (run 40602178977,
So the Ubuntu half of #2703's acceptance criterion is met. The Flatpak red needs a rerun of that one job to clear; it is not this diff. |
zackees
marked this pull request as ready for review
October 27, 2026 23:46
Member
Author
|
Handed off to the coordinator. PR is in the merge queue at position 1 (AWAITING_CHECKS) after a green PR CI (CI Gate ✅) and a dispatch that took the Ubuntu app build past |
zackees
added a commit
that referenced
this pull request
Oct 28, 2026
GREEN: check_buffer, the four SIMD repack functions and the two scalar fallbacks are reached only through audio_repack_init's repack_func slot in this unity group, so they are file-scope private. audio_repack_init and audio_repack_free keep their prototypes in audio-repack.h. This clears the next -Wmissing-prototypes failure the Flatpak app lane hits after #2710 and #2712: the lane compiles past the audio repack unit instead of stopping there.
This was referenced Oct 28, 2026
MCPVOT
pushed a commit
to MCPVOT/obs-studio
that referenced
this pull request
Oct 30, 2026
…2703) (obs-rust#2717) * ci: Pin that the aja audio-repack helpers are static (obs-rust#2703) RED: ci/test_aja_missing_prototypes.py fails on master with seven file-scope definitions in plugins/aja/audio-repack.c.h that are neither static nor declared in the plugin's headers. The Flatpak app build is the only lane that compiles them and it stops at audio-repack.c.h:5: error: no previous prototype for 'check_buffer' [-Werror=missing-prototypes] * fix(aja): Make the audio-repack helpers static (obs-rust#2703) GREEN: check_buffer, the four SIMD repack functions and the two scalar fallbacks are reached only through audio_repack_init's repack_func slot in this unity group, so they are file-scope private. audio_repack_init and audio_repack_free keep their prototypes in audio-repack.h. This clears the next -Wmissing-prototypes failure the Flatpak app lane hits after obs-rust#2710 and obs-rust#2712: the lane compiles past the audio repack unit instead of stopping there. * ci: Pin the linux-jack process callback as static (obs-rust#2703) RED: ci/test_linux_jack_missing_prototypes.py fails on master with plugins/linux-jack/jack-wrapper.c.h:56: jack_process_callback a file-scope definition that is neither static nor declared in a header. The Flatpak app build is the only lane that compiles the JACK plugin and it stops there with -Werror=missing-prototypes. * fix(linux-jack): Make the process callback static (obs-rust#2703) GREEN: jack_process_callback is the jack_set_process_callback argument used only by jack_init in the same translation unit, so it is file-scope private. jack_init and deactivate_jack keep the prototypes jack-wrapper.h declares. * style(aja): clang-format the static shuffle_8ch signature (obs-rust#2703) The added `static` pushed the declaration past 120 columns; clang-format 22.1.3 rewraps it the way ./lint --fix does.
MCPVOT
pushed a commit
to MCPVOT/obs-studio
that referenced
this pull request
Oct 30, 2026
…obs-rust#2833) A pin-drop that is clean on a Tier 2 tree can still fail a Scheduled run, because many plugin and platform sources only compile in the app builds (obs-rust#2678, obs-rust#2710). Record the cheap enumeration: configure the AppImage tree and replay its compdb. Refs obs-rust#2624. Co-authored-by: zackees <[email protected]>
This file contains hidden or 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
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.
What
The next
-Wmissing-prototypesfailure the app builds hit after #2704:libobs-opengl/gl-wayland-egl.c.h:90definesgl_wayland_egl_windowinfo_createat file scope without a prototype, so the UbuntuOBS-Studio-Rustand Flatpak lanes stop with-Werror=missing-prototypes.The helper is only reached through its
gl_winsys_vtableslot (.windowinfo_create, same file line 438), so it is file-scope private. The X11 siblinggl_x11_egl_windowinfo_createis alreadystatic; this makes Wayland match it. One word:static.RED
ci/test_platform_missing_prototypes.py(new) scans every platform unity source inlibobs-opengl/*.c.hfor a file-scope definition that is neitherstaticnor declared in a tracked header. On master it fails:That is the same file and line the app lanes report (
error: no previous prototype for 'gl_wayland_egl_windowinfo_create' [-Werror=missing-prototypes], run 40595018476 job 122510595427).GREEN
static struct gl_windowinfo *gl_wayland_egl_windowinfo_create(...). The test passes,ruff check/ruff format --checkare clean, andclang-format --dry-run --Werroris clean on the changed header.Local evidence:
uv run --no-project python -m unittest ci/test_platform_missing_prototypes.py— FAIL on master, OK after the fix.uv run --no-project python -m unittest ci.test_ci_pre ci.test_ci_toml— 52 tests OK.ci/test_scripting_missing_prototypes.py— 2 tests OK (the build(obs-scripting): Exempt the SWIG sources from -Wmissing-prototypes (#2703) #2704 pin still holds).Verification still needed
PR CI does not build the OBS app (
ci_scope.py), so the app lanes that compile this TU need a dispatch on this branch. The acceptance criterion for #2703 is the Ubuntu and Flatpak app builds going green pastlibobs-opengl; if the next failure is another diagnostic in a later TU, this PR should land anyway and the next class goes on #2703 (-Werrorstops at the first diagnostic per target).Refs #2703 — does not close it; the issue's acceptance is the app lanes passing.