summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2018-04-05 13:07:09 -0400
committerAdam Jackson <ajax@redhat.com>2018-04-05 14:18:49 -0400
commit57e872301f5e836be2efb8f952f9c9711650b447 (patch)
treecbe5d113361bb6b917838285543d6d04fc11caae
parent83913de25d35709b3ab7b0ab124b73924145d2dd (diff)
mi: Hush an almost certainly bogus warning
In file included from ../mi/miexpose.c:83: ../mi/miexpose.c: In function ‘miHandleExposures’: ../include/regionstr.h:174:22: warning: ‘expBox.y2’ may be used uninitialized in this function [-Wmaybe-uninitialized] (_pReg)->extents = *(_pBox); ~~~~~~~~~~~~~~~~~^~~~~~~~~~ ../mi/miexpose.c:139:12: note: ‘expBox.y2’ was declared here BoxRec expBox; ^~~~~~ etc. It's initialized if (extents), and then only read if (extents), but gcc doesn't seem to figure that out. Whatever, bzero it to be explicit. Signed-off-by: Adam Jackson <ajax@redhat.com> Acked-by: Keith Packard <keithp@keithp.com>
-rw-r--r--mi/miexpose.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mi/miexpose.c b/mi/miexpose.c
index 148d1a63b..c34530c34 100644
--- a/mi/miexpose.c
+++ b/mi/miexpose.c
@@ -136,7 +136,7 @@ miHandleExposures(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable,
the window background
*/
WindowPtr pSrcWin;
- BoxRec expBox;
+ BoxRec expBox = { 0, };
Bool extents;
/* avoid work if we can */