summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Long <ryan.long@oarcorp.com>2021-03-12 15:56:03 -0500
committerJoel Sherrill <joel@rtems.org>2021-04-08 17:58:19 -0500
commit09d811b8a587b44556a6fea240ac636815d0295a (patch)
tree2870427e64acc8dd50000d8d152e5ecef8f1ef0e
parentprint-ls.c: Unused value (CID #1255346) (diff)
downloadrtems-09d811b8a587b44556a6fea240ac636815d0295a.tar.bz2
fastlz.c: Unused value (CID #1399751)
CID 1399751: Unused value in fastlz2_compress(). Closes #4341
-rw-r--r--cpukit/libdl/fastlz.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/cpukit/libdl/fastlz.c b/cpukit/libdl/fastlz.c
index 3c9d6f6f86..7257c98b7e 100644
--- a/cpukit/libdl/fastlz.c
+++ b/cpukit/libdl/fastlz.c
@@ -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))
{
distance = 1;
- ip += 3;
+ #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;
+ #endif
ref = anchor - 1 + 3;
goto match;
}