mirror of
https://github.com/LiBwrt-op/openwrt-6.x.git
synced 2025-12-16 16:57:28 +00:00
bcm47xx: Fix lzma-loader compilation
Fixes:
```
LzmaDecode.c: In function 'RangeDecoderReverseBitTreeDecode':
LzmaDecode.c:199:5: error: 'symbol' undeclared (first use in this function)
199 | symbol |= (bit << i);
| ^~~~~~
LzmaDecode.c:199:5: note: each undeclared identifier is reported only once for each function it appears in
```
Fixes: 4ffd5aa239 ("treewide: fix coccinelle checks")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
27e5d7ddd9
commit
5aeaddc0c8
@ -185,6 +185,7 @@ int RangeDecoderReverseBitTreeDecode(CProb *probs, int numLevels, CRangeDecoder
|
|||||||
{
|
{
|
||||||
int mi = 1;
|
int mi = 1;
|
||||||
int i;
|
int i;
|
||||||
|
int symbol = 0;
|
||||||
#ifdef _LZMA_LOC_OPT
|
#ifdef _LZMA_LOC_OPT
|
||||||
RC_INIT_VAR
|
RC_INIT_VAR
|
||||||
#endif
|
#endif
|
||||||
@ -202,7 +203,7 @@ int RangeDecoderReverseBitTreeDecode(CProb *probs, int numLevels, CRangeDecoder
|
|||||||
#ifdef _LZMA_LOC_OPT
|
#ifdef _LZMA_LOC_OPT
|
||||||
RC_FLUSH_VAR
|
RC_FLUSH_VAR
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
Byte LzmaLiteralDecode(CProb *probs, CRangeDecoder *rd)
|
Byte LzmaLiteralDecode(CProb *probs, CRangeDecoder *rd)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user