mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 23:23:13 +00:00
contrib: Apply FastLZ changes
This appears to be the warning fix from:
09d811b8a5
This commit is contained in:
committed by
Kinsey Moore
parent
f00a819274
commit
b761142fd9
@@ -219,7 +219,15 @@ static FASTLZ_INLINE int FASTLZ_COMPRESSOR(const void* input, int length, void*
|
|||||||
if(ip[0] == ip[-1] && FASTLZ_READU16(ip-1)==FASTLZ_READU16(ip+1))
|
if(ip[0] == ip[-1] && FASTLZ_READU16(ip-1)==FASTLZ_READU16(ip+1))
|
||||||
{
|
{
|
||||||
distance = 1;
|
distance = 1;
|
||||||
|
#ifndef __rtems__
|
||||||
|
/*
|
||||||
|
* ip is assigned a value here, but is immediately assigned another
|
||||||
|
* value when it goes to match (line 269). The value that was initially
|
||||||
|
* assigned is not used, and this results in a Coverity issue. See CID
|
||||||
|
* 1399751
|
||||||
|
*/
|
||||||
ip += 3;
|
ip += 3;
|
||||||
|
#endif
|
||||||
ref = anchor - 1 + 3;
|
ref = anchor - 1 + 3;
|
||||||
goto match;
|
goto match;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user