fix-warnings

This commit is contained in:
Damian Edkovic 2026-02-17 23:10:20 +00:00
parent acbca2e94c
commit f7fa04d3e6
3 changed files with 3 additions and 3 deletions

View File

@ -615,7 +615,7 @@ int8_t cacheex_maxhop_lg(struct s_client *cl, ECM_REQUEST *er)
* Check if ECM hop count is within reader's configured maxhop limits * Check if ECM hop count is within reader's configured maxhop limits
* Returns 1 if hop is allowed, 0 if hop exceeds limit * Returns 1 if hop is allowed, 0 if hop exceeds limit
*/ */
static int8_t cacheex_check_maxhop(struct s_client *cl, ECM_REQUEST *er) static int8_t __attribute__((unused)) cacheex_check_maxhop(struct s_client *cl, ECM_REQUEST *er)
{ {
// Get the hop count from csp_lastnodes list // Get the hop count from csp_lastnodes list
uint8_t hop = er->csp_lastnodes ? ll_count(er->csp_lastnodes) : 0; uint8_t hop = er->csp_lastnodes ? ll_count(er->csp_lastnodes) : 0;

View File

@ -549,7 +549,7 @@ CW_CACHE_SETTING get_cw_cache(ECM_REQUEST *er)
return cw_cache_setting; return cw_cache_setting;
} }
static bool cw_cache_check(ECM_REQUEST *er) static bool __attribute__((unused)) cw_cache_check(ECM_REQUEST *er)
{ {
if(cw_cache_init_done) if(cw_cache_init_done)
{ {

View File

@ -796,7 +796,7 @@ int32_t init_fakecws(void)
int32_t nr = 0, i, j, idx; int32_t nr = 0, i, j, idx;
uint32_t alloccount[0x100], count[0x100], tmp, max_compares = 0, average_compares = 0; uint32_t alloccount[0x100], count[0x100], tmp, max_compares = 0, average_compares = 0;
char *token, cw_string[64]; char *token, cw_string[64];
uint8_t cw[16], wrong_checksum, c, have_fakecw = 0; uint8_t cw[16], wrong_checksum, __attribute__((unused)) c, have_fakecw = 0;
FILE *fp; FILE *fp;
memset(alloccount, 0, sizeof(count)); memset(alloccount, 0, sizeof(count));