Quiet Clang Static Analyzer warnings.

Most of the warnings were caused by uninitialized values. Some were in plug-ins that didn't have a break in a switch, causing the memory to be deleted twice.
This commit is contained in:
C.W. Betts
2024-04-19 17:42:17 -06:00
parent 0d6fcb1e7e
commit 7d7f5bf896
82 changed files with 99 additions and 55 deletions

View File

@@ -707,7 +707,7 @@ int bm_AllocLoadFileBitmap(const char *fname, int mipped, int format) {
}
char name[BITMAP_NAME_LEN];
int n, src_bm;
int n, src_bm = 0;
int old_used;
int overlay = 0;
@@ -1317,7 +1317,7 @@ void bm_GenerateMipMaps(int handle) {
int rsum, gsum, bsum, asum;
rsum = gsum = bsum = asum = 0;
ushort destpix;
ushort destpix = 0;
if (GameBitmaps[handle].format == BITMAP_FORMAT_1555) {
for (int y = 0; y < 2; y++)
for (int x = 0; x < 2; x++) {