diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-07-19 23:45:05 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-07-20 00:09:12 -0700 |
commit | e89c0797e8b21b543a228fb56957ba3a1e91c38e (patch) | |
tree | f06b61ef7753cab6c752377c804157adfbe7ae64 | |
parent | 2bc7b34f2868f7d340c36c20a715d9c36495f236 (diff) |
Quiet gcc warnings about potentially uninitialized variables
It should have been impossible for these to be used without being
initialized, but following the logic to prove that was trickier
than the compiler was willing to unravel.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | multiVis.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -299,7 +299,7 @@ static void TransferImage(Display *disp, XImage *reg_image, { int i,j,old_pixel,new_pixel,red_ind,green_ind,blue_ind ; XColor *colors; - int rShift,gShift,bShift; + int rShift = 0, gShift = 0, bShift = 0; (void) QueryColorMap(disp,reg->cmap,reg->vis,&colors, &rShift,&gShift,&bShift) ; |