Skip to content

fix(libobs-opengl): Make the Wayland windowinfo factory static (#2703) - #2710

Merged
zackees merged 2 commits into
masterfrom
fix/2703-wayland-egl-static
Oct 27, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/2703-wayland-egl-static

Conversation

@zackees

@zackees zackees commented Oct 27, 2026

Copy link
Copy Markdown
Member

What

The next -Wmissing-prototypes failure the app builds hit after #2704: libobs-opengl/gl-wayland-egl.c.h:90 defines gl_wayland_egl_windowinfo_create at file scope without a prototype, so the Ubuntu OBS-Studio-Rust and Flatpak lanes stop with -Werror=missing-prototypes.

The helper is only reached through its gl_winsys_vtable slot (.windowinfo_create, same file line 438), so it is file-scope private. The X11 sibling gl_x11_egl_windowinfo_create is already static; this makes Wayland match it. One word: static.

RED

ci/test_platform_missing_prototypes.py (new) scans every platform unity source in libobs-opengl/*.c.h for a file-scope definition that is neither static nor declared in a tracked header. On master it fails:

AssertionError: Lists differ: ['libobs-opengl/gl-wayland-egl.c.h:90: gl_wayland_egl_windowinfo_create'] != []

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 --check are clean, and clang-format --dry-run --Werror is clean on the changed header.

Local evidence:

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 past libobs-opengl; if the next failure is another diagnostic in a later TU, this PR should land anyway and the next class goes on #2703 (-Werror stops at the first diagnostic per target).

Refs #2703 — does not close it; the issue's acceptance is the app lanes passing.

…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.
@zackees

zackees commented Oct 27, 2026

Copy link
Copy Markdown
Member Author

Dispatch evidence on this head (run 40602178977, Scheduled Repository Actions on fix/2703-wayland-egl-static):

  • Build 🧱 / Ubuntu 🐧 (OBS-Studio-Rust) — success. The lane now compiles past libobs-opengl and reaches packaging, so the diagnostic this PR fixes is cleared end to end in the app build.
  • Build 🧱 / Flatpak 📦 — failure at step 14 Build Flatpak Manifest 🧾, annotation Build failed: Error: The process '/app/bin/xvfb-run' failed with exit code 1. That is the independently-flaky sandbox step the repo documents (same head pattern shows on dispatches that predate this branch), not a compile diagnostic — the log carries no missing-prototypes or gl-wayland-egl hit.

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
zackees marked this pull request as ready for review October 27, 2026 23:46
@zackees
zackees added this pull request to the merge queue Oct 27, 2026
@zackees

zackees commented Oct 27, 2026

Copy link
Copy Markdown
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 libobs-opengl to success. The Flatpak app lane's step-14 Build Flatpak Manifest 🧾 red is the known xvfb-run sandbox flake and needs a single-job rerun, not a code change; the log carries no missing-prototypes hit.

Merged via the queue into master with commit 6ae5bc1 Oct 27, 2026
69 of 71 checks passed
@zackees
zackees deleted the fix/2703-wayland-egl-static branch October 27, 2026 23:50
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.
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In progress to Done in obs-rust Multiview 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant