Initialize class fields to null/zero

Silence a couple of static analyzer warnings.
This commit is contained in:
Paulo Matos committed 2025-03-27 15:35:40 +01:00
1 parent c3de7c63b4
commit 4565f2b689
2 files changed
+4 -1

No files matched your search

@@ -345,7 +345,7 @@ private:
bool SlowPath = false;
// Keeping IREmitter not to pass arguments around
IREmitter* IREmit = nullptr;
IRListView* IR;
IRListView* IR = nullptr;
};
inline void X87StackOptimization::InvalidateCaches() {
@@ -1343,6 +1343,9 @@ struct shmid_ds_32 {
shm_cpid = buf.shm_cpid;
shm_lpid = buf.shm_lpid;
shm_nattch = buf.shm_nattch;
shm_unused = 0;
shm_unused2 = 0;
shm_unused3 = 0;
}
};