mirror of
https://github.com/Interlisp/maiko.git
synced 2026-05-05 07:44:20 +00:00
Resolve warning: variable '...' may be uninitialized when used here in new_bitblt_code
Note that one might analyze the order of the variables in the bitblt inner loops and adjust so that items accessed together are in the same cache-line.
This commit is contained in:
18
inc/bb.h
18
inc/bb.h
@@ -705,17 +705,17 @@
|
|||||||
/************************************************************************/
|
/************************************************************************/
|
||||||
|
|
||||||
#define variables \
|
#define variables \
|
||||||
int num_lines_remaining; \
|
int num_lines_remaining = 0; \
|
||||||
int dstnumL, src32lbit, srcLshift, dst32lbit; \
|
int dstnumL = 0, src32lbit = 0, srcLshift = 0, dst32lbit = 0; \
|
||||||
unsigned int srcRmask, dstold, dstdata, mask; \
|
unsigned int srcRmask = 0, dstold = 0, dstdata = 0, mask = 0; \
|
||||||
UNSIGNED x32byta, x32nbyt, x32ia; \
|
UNSIGNED x32byta = 0, x32nbyt = 0, x32ia = 0; \
|
||||||
int abc, dst32rbit, src32rbit, fwd; \
|
int abc, dst32rbit = 0, src32rbit = 0, fwd; \
|
||||||
unsigned int *OrigSrcAddr, *OrigDstAddr; \
|
unsigned int *OrigSrcAddr = 0, *OrigDstAddr = 0; \
|
||||||
int bb_fast; \
|
int bb_fast; \
|
||||||
unsigned int preloop_mask, postloop_mask, sdw_mask; \
|
unsigned int preloop_mask, postloop_mask, sdw_mask; \
|
||||||
unsigned int *dst32addr, *src32addr; \
|
unsigned int *dst32addr = 0, *src32addr = 0; \
|
||||||
unsigned int shS, savedS = 0, newS; \
|
unsigned int shS = 0, savedS = 0, newS = 0; \
|
||||||
int srcRshift;
|
int srcRshift = 0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user