mirror of
https://github.com/kevinbentley/Descent3.git
synced 2026-05-05 00:00:27 -04:00
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:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user