Repository navigation
v2.0.185: fix: build without -Wunused-parameter warnings (#1550)
·
41 commits
to master
since this release
Callbacks with a fixed signature (adapter and CA ops, socket, filter and timer callbacks, CI resource handlers, OpenSSL and SRT callbacks, test fakes) drop the name of a parameter they do not use. Plain functions lose the unused parameter, and their callers the argument; that includes the sendmmsg() shim for macOS and SH4. Parameters used only in some builds are [[maybe_unused]]: ctx in posix_signal_handler() (MIPS and SH), sid/arg in decode_transport_srt() (-DSRT=OFF), and four pmt.cpp parameters used only without DISABLE_TABLES. A loop variable of start_active_pmts() that is in the same situation moves into its loop. dump_filters() keeps its adapter argument and now logs only the filters of that adapter, instead of all of them. set_thread_prio() keeps setting the priority of the calling thread; its tid argument was never used. Part of #1538