summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Woelders <kim@woelders.dk>2021-04-13 19:22:29 +0200
committerKim Woelders <kim@woelders.dk>2021-04-16 17:15:06 +0200
commit6f4dc94cc45c937c902a4cf3619febdb8bac16cd (patch)
tree6bfb9afe2d4ff8e317cb22998351608d118c3c17
parentcd1a42dd079d35f141ae8bfcf3f6db991cfad984 (diff)
Fix clang-analyzer warnings - loaders (suppress bogus)
-rw-r--r--src/modules/loaders/loader_lbm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/loaders/loader_lbm.c b/src/modules/loaders/loader_lbm.c
index 155f9da..d8cd1bb 100644
--- a/src/modules/loaders/loader_lbm.c
+++ b/src/modules/loaders/loader_lbm.c
@@ -189,6 +189,10 @@ bodyrow(unsigned char *p, int z, ILBM * ilbm)
189 return; 189 return;
190 } 190 }
191 191
192#ifdef __clang_analyzer__
193 memset(p, 0, z);
194#endif
195
192 for (i = 0; i < z; i += w) 196 for (i = 0; i < z; i += w)
193 { 197 {
194 b = ilbm->body.data[ilbm->offset++]; 198 b = ilbm->body.data[ilbm->offset++];