[CCi] chan_dahdi.i -> chan_dahdi.o
chan_dahdi.c: In function ‘dahdi_handle_event’:
chan_dahdi.c:7840:11: error: unused variable ‘x’ [-Werror=unused-variable]
7840 | int res, x;
|
I think when HAVE_PRI
is not defined or some of the optional DAHDI dependencies are not present, building of chan_dahdi
fails with the massive DAHDI refactor patch: https://code.phreaknet.org/asterisk/dahdicleanup.diff
Tentative patch that possibly solves this issue:
static struct ast_frame *dahdi_handle_event(struct ast_channel *ast)
{
- int res, x;
+#if !defined(SIG_ANALOG_HANDLED) || defined(HAVE_PRI)
+ int x;
+#endif
To validate, additional builds should be added that also build chan_dahdi
without all of the optional dependencies, e.g. without libpri, etc.
You must be
2/16/2025 6:15 PM — InterLinked
Autoresolved by code commit on GitHub:
patches: Fix condition in dahdicleanup.diff.
https://github.com/InterLinked1/phreakscript/commit/175b2a09d8f8a8cf0efc03fac9265be9c7195a3a