Repository navigation
Description
The release/dispatch-only app builds are red on master after #2678 enabled -Wmissing-prototypes/-Wstrict-prototypes tree-wide: the SWIG-generated sources in shared/obs-scripting declare their entry points without prototypes, so obs-scripting does not compile and both Linux app lanes stop before packaging.
This is the same class #2696 fixed for -Wpedantic (#2623 → #2643); that exemption is per-diagnostic, so it does not cover the flags #2678 added three hours later.
Evidence
Scheduled Repository Actions dispatched on fix/2699-app-build-soldr at c7769380 (run 40591042433, master d9be04468 + that one workflow commit):
Build 🧱 / Ubuntu 🐧 (OBS-Studio-Rust)— failure, job 122495240031Build 🧱 / Flatpak 📦— failure, job 122495240167
Both die in the obs-scripting target:
shared/obs-scripting/obs-scripting-lua-frontend.c.h:320:6: error: no previous prototype for 'add_lua_frontend_funcs' [-Werror=missing-prototypes]
shared/obs-scripting/obs-scripting-lua-source.c.h:766:6: error: no previous prototype for 'undef_lua_script_sources' [-Werror=missing-prototypes]
shared/obs-scripting/obs-scripting-lua.c.h:1075:6: error: no previous prototype for 'obs_lua_script_load' [-Werror=missing-prototypes]
shared/obs-scripting/obs-scripting-lua.c.h:1089:15: error: no previous prototype for 'obs_lua_script_create' [-Werror=missing-prototypes]
shared/obs-scripting/obs-scripting-lua.c.h:1124:6: error: no previous prototype for 'obs_lua_script_unload' [-Werror=missing-prototypes]
shared/obs-scripting/obs-scripting-lua.c.h:1205:6: error: no previous prototype for 'obs_lua_script_destroy' [-Werror=missing-prototypes]
shared/obs-scripting/obs-scripting-lua.c.h:1244:19: error: no previous prototype for 'obs_lua_script_get_properties' [-Werror=missing-prototypes]
shared/obs-scripting/obs-scripting-lua.c.h:1267:6: error: no previous prototype for 'obs_lua_script_save' [-Werror=missing-prototypes]
shared/obs-scripting/obs-scripting-lua.c.h:1294:6: error: no previous prototype for 'obs_lua_load' [-Werror=missing-prototypes]
shared/obs-scripting/obs-scripting-lua.c.h:1320:6: error: no previous prototype for 'obs_lua_script_unload' [-Werror=missing-prototypes]
shared/obs-scripting/obs-scripting-python-frontend.c.h:418:6: error: no previous prototype for 'add_python_frontend_funcs' [-Werror=missing-prototypes]
ninja: build stopped: subcommand failed.
The list above is what the two lanes reached before ninja stopped (cc1: all warnings being treated as errors, -Werror): Flatpak 📦 logged the ten Lua ones, Ubuntu 🐧 added obs-scripting-python-frontend.c.h:418. The obspython/obslua SWIG wrappers (obspythonPYTHON_wrap.c, obsluaLUA_wrap.c) are the same generated code and were not reached, so expect the same diagnostics once the first target compiles — unverified, since neither lane got that far.
Why no PR lane caught it
The same SHA's pull-request run (40591038733) is green: no PR-triggered lane builds the OBS app or shared/obs-scripting, and schedule/dispatch/the release gate are the only paths that do. #2678 therefore merged with this compile failure already in it (its own RED/GREEN evidence was a -fsyntax-only replay over compdb TUs).
Fix shape
Generated code — swig -external-runtime output and the *_wrap.c files — cannot be edited, so the target opts out of that one diagnostic, exactly as #2696 did beside the existing -Wno-cast-qual (#516) exemptions:
shared/obs-scripting/cmake/lua.cmake:33(obs-scripting):-Wno-cast-qual→ add-Wno-missing-prototypesshared/obs-scripting/cmake/python.cmake:56(obs-scripting):-Wno-cast-qual;-Wno-pedantic→ add-Wno-missing-prototypesshared/obs-scripting/obspython/CMakeLists.txt:53,shared/obs-scripting/obslua/CMakeLists.txt:34: same addition for the wrapper targets
Every addition stays inside the C-only COMPILE_LANG_AND_ID:C,... generator expression and the global lists (cmake/common/compiler_common.cmake, cmake/linux/compilerconfig.cmake) keep -Wmissing-prototypes, so the #2624 ratchet still applies to first-party code. A pin test beside ci/test_scripting_pedantic_exemption.py is the offline RED/GREEN; the real proof is a workflow_dispatch of Scheduled on the fix branch showing Ubuntu 🐧 (OBS-Studio-Rust) and Flatpak 📦 green.
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Oct 27, 2026
Claiming: obs-scripting -Wmissing-prototypes exemption (SWIG-generated sources)
Plan:
ci/test_scripting_missing_prototypes.pypins-Wno-missing-prototypeson all three SWIG targets inside the C-onlyCOMPILE_LANG_AND_IDgenerator expression, and pins that the global C lists keep-Wmissing-prototypes(same shape asci/test_scripting_pedantic_exemption.py). It fails on master.-Wno-cast-qual/-Wno-pedanticexemptions inshared/obs-scripting/cmake/{lua,python}.cmakeandobspython/obslua'sCMakeLists.txtwith the one diagnostic. No generated file edited, no global flag relaxed.workflow_dispatchofScheduledon the branch:Ubuntu 🐧 (OBS-Studio-Rust)andFlatpak 📦must go green (that is the only path that builds these). One PR,Refs #2624/Fixes #2703.build(obs-scripting): Exempt -Wstrict-prototypes too (#2703)
zackees commentedon Oct 27, 2026
Evidence from run 40595018476 (job 122510595427, PR #2704's head
ec608e3applied): the UbuntuOBS-Studio-Rustapp build now gets pastshared/obs-scriptingand stops on first-party C instead:On master,
gl-wayland-egl.c.h:90definesstruct gl_windowinfo *gl_wayland_egl_windowinfo_create(const struct gs_init_data *info)with no declaration in scope at that point, so-Werror=missing-prototypesrejects it. This is not generated code, so the exemption does not cover it: the fix is a prototype (or astaticdefinition), and the global flag should stay. Ninja stops at the first failure, so expect more of these behind it inlibobs-opengl(and possibly elsewhere) once this one is fixed.The Flatpak lane's failure in the same run was a separate regression from #2702 (the action passed
uva runner-side path inside the container); #2707 fixes that.zackees commentedon Oct 27, 2026
Reopening: #2704 closed this on merge, but its own
Scheduleddispatch (run 40595018476) shows the acceptance criterion is not met — the UbuntuOBS-Studio-Rustlane still fails, just one file further on:#2704 did fix what it claimed (the SWIG
shared/obs-scriptingsites — I verified the lanes get past them), so the remaining red is the first-partylibobs-openglcase, plus the Flatpak lane's separate action regression that #2707 fixes. Keeping this open until both lanes are green onScheduled, since a closed issue here is how the next tick loses the thread.zackees commentedon Oct 27, 2026
Progress: next diagnostic in the class, and the PR is up.
PR #2710 (draft) makes
gl_wayland_egl_windowinfo_createstaticinlibobs-opengl/gl-wayland-egl.c.h:90— the exact file/line this issue's reopening comment quoted. It is reached only through itsgl_winsys_vtableslot in the same file, and the X11 siblinggl_x11_egl_windowinfo_createis alreadystatic, so this is the same fix the X11 source already has. A newci/test_platform_missing_prototypes.pypins the class offline (RED on master:libobs-opengl/gl-wayland-egl.c.h:90: gl_wayland_egl_windowinfo_create; GREEN after the one-word fix), so the next platform definition that hides from-Wmissing-prototypesfails a PR lane instead of waiting for a dispatch.Local evidence: the new test FAILs on master and passes after the fix;
ci.test_ci_pre+ci.test_ci_toml(52 tests) andci/test_scripting_missing_prototypes.py(2) stay green;clang-format --dry-run --Werrorclean on the changed header.Acceptance for this issue is the Ubuntu and Flatpak app lanes passing, so the PR stays a draft until a dispatch on this branch confirms the lane gets past
libobs-opengl. If-Werrorstops on another diagnostic in a later TU, this PR lands anyway and the next class goes here rather than being folded in (-Werrorreports one diagnostic per target, so a dispatch list is a prefix, not the whole class).zackees commentedon Oct 27, 2026
Dispatch result on PR #2710's head (run 40602178977,
Scheduled Repository Actionsonfix/2703-wayland-egl-static):libobs-opengland completes — the reopened criterion for this issue is met on the Ubuntu side.Build Flatpak Manifest 🧾, annotationBuild failed: Error: The process '/app/bin/xvfb-run' failed with exit code 1. That is the documented independently-flaky sandbox step; the log has nomissing-prototypes/gl-wayland-eglhit. Needs a single-job rerun, not a code change.PR #2710 is ready for the queue; once the Flatpak job is rerun and clears, this issue's acceptance criterion is satisfied on both app lanes.
ci: Pin the linux-jack process callback as static (#2703)
fix(linux-jack): Make the process callback static (#2703)
ci: Pin that the aja audio-repack helpers are static (#2703)
fix(aja): Make the audio-repack helpers static (#2703)
ci: Pin the linux-jack process callback as static (#2703)
fix(linux-jack): Make the process callback static (#2703)
zackees commentedon Oct 28, 2026
Progress: the remaining two Flatpak-only first-party sites are up as PR #2717, and a
Scheduleddispatch on its head now has both app lanes green:plugins/aja/audio-repack.c.h—check_bufferand the repack helpers defined without a prototype (7 findings offline; the 5 the lane reaches underUSE_SIMD).plugins/linux-jack/jack-wrapper.c.h—jack_process_callback(the next diagnostic after aja).Both are unity-group helpers reached only inside their own translation unit, so they are now
static— the #2710 shape — and each has an offline pin (ci/test_aja_missing_prototypes.py,ci/test_linux_jack_missing_prototypes.py) that fails on master and passes here.Dispatch 40614011152 on
8227cd98f:Build 🧱 / Flatpak 📦success,Build 🧱 / Ubuntu 🐧 (OBS-Studio-Rust)success. With #2704/#2710/#2712 already merged, that closes this issue's acceptance criterion on a branch; it closes on merge.style(aja): clang-format the static shuffle_8ch signature (#2703)
zackees commentedon Oct 28, 2026
Acceptance criterion met on
master: PR #2717 merged as25eb37bdb(2026-10-28T02:01:42Z), on top of #2704/#2710/#2712.Evidence on the branch head
8227cd98f(run 40614011152,Scheduled Repository Actions, dispatched fromfix/2703-aja-audio-repack-prototypes; the merged head8780febcdcarries the same functional commits plus one./lint --fixre-wrap):Build 🧱 / Flatpak 📦— success (job 122572800771): compiles pastshared/obs-scriptingSWIG sources,plugins/aja/audio-repack.c.handplugins/linux-jack/jack-wrapper.c.h, and finishes the manifest build.Build 🧱 / Ubuntu 🐧 (OBS-Studio-Rust)— success (job 122572800754).The run's overall
failureis the CEF Chromium Support job (#1864), by design, not an app lane.What landed: the SWIG-generated
obs-scriptingsources are exempted from-Wmissing-prototypes/-Wstrict-prototypesper-target inshared/obs-scripting/cmake/{lua,python}.cmakeand the two wrapperCMakeLists.txt(#2704/#2712), the Wayland windowinfo factory wentstatic(#2710), and the last two Flatpak-only unity helpers —check_buffer/repack_*in aja andjack_process_callbackin linux-jack — wentstaticwith offline pinsci/test_aja_missing_prototypes.pyandci/test_linux_jack_missing_prototypes.py(#2717). The global-Wmissing-prototypesratchet from #2624 still applies to first-party code.Nothing left under this issue's criterion; closing. Any new first-party definition that hides from the diagnostic fails the offline pins in PR lanes now, so the next regression surfaces as a PR red instead of a dispatch-only app-build failure.
build(obs-scripting): Exempt the SWIG sources from -Wmissing-prototyp…
fix(libobs-opengl): Make the Wayland windowinfo factory static (obs-r…
build(obs-scripting): Exempt the Lua SWIG sources from -Wpedantic (ob…
fix(flatpak): Make the aja and linux-jack C helpers static (obs-rust#…