From a2d794f015dea5c928874ab3edfa29be38bdc73c Mon Sep 17 00:00:00 2001 From: Pavel P Date: Tue, 3 Jan 2023 00:54:04 +0300 Subject: [PATCH] Fix SZ32 macro where `goto a` had to be used instead of `break` similarly to SZ64 macro Otherwise most of the code becomes unused where SZ32 macro is used and results in the following warnings when building 32-bit version: TurboPFor\trlec.c(104,7): warning C4102: 'a': unreferenced label TurboPFor\trlec.c(104): warning C4702: unreachable code TurboPFor\trlec.c(106): warning C4702: unreachable code TurboPFor\trlec.c(107): warning C4702: unreachable code --- trlec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trlec.c b/trlec.c index b464e27..9fbd1e3 100644 --- a/trlec.c +++ b/trlec.c @@ -79,7 +79,7 @@ static unsigned cntcalc32(const unsigned char *__restrict in, unsigned inlen, cn #define PUTE(_op_, _e_) do { PUTC(_op_, _e_); vlput32(_op_, 0); } while(0) #define SZ64 if((z = (ctou64(ip) ^ ctou64(ip+1)))) goto a; ip += 8; -#define SZ32 if((z = (ctou32(ip) ^ ctou32(ip+1)))) break; ip += 4; +#define SZ32 if((z = (ctou32(ip) ^ ctou32(ip+1)))) goto a; ip += 4; #define SRLEPUT8(_pp_, _ip_, _e_, _op_) do {\ unsigned _r = (_ip_ - _pp_)+1;\