From d7032a4cc3e247c127010ce54c8fe4e98134f8e6 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 11 May 2022 09:52:12 +0700 Subject: [PATCH] Fix broken linux build: loop initial declarations are only allowed in C99 or C11 mode (broken by 82b962af8feab5a85ebef5f1142ecd49461a69b9) error: conflicting types for scam_vars --- configure.ac | 1 + src/unicast_monit.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 19778802..7fe5fba5 100644 --- a/configure.ac +++ b/configure.ac @@ -18,6 +18,7 @@ fi # Checks for programs. AC_PROG_CC +AC_PROG_CC_STDC AC_PROG_INSTALL AC_PROG_MAKE_SET diff --git a/src/unicast_monit.c b/src/unicast_monit.c index a53d892f..a207b774 100644 --- a/src/unicast_monit.c +++ b/src/unicast_monit.c @@ -639,7 +639,6 @@ int unicast_send_channel_list_xml (int number_of_channels, mumudvb_channel_t *ch #ifndef ENABLE_SCAM_SUPPORT (void) scam_vars_v; //to make compiler happy #else - char *scam_vars; scam_parameters_t *scam_vars=(scam_parameters_t *)scam_vars_v; #endif