aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-05-04 01:44:36 +0200
committerUlrich Sibiller <uli42@gmx.de>2019-06-12 18:45:02 +0200
commit28e42b3bd0d7fb5d5674acd256fed5e84903a271 (patch)
tree53f23125b2adbc6981de657c9fbcf476d0eaf83a /nx-X11
parent9f5ddede95086c6f31efe89ed228ac035a89a8e5 (diff)
downloadnx-libs-28e42b3bd0d7fb5d5674acd256fed5e84903a271.tar.gz
nx-libs-28e42b3bd0d7fb5d5674acd256fed5e84903a271.tar.bz2
nx-libs-28e42b3bd0d7fb5d5674acd256fed5e84903a271.zip
mi: Hush an almost certainly bogus warning
commit 57e872301f5e836be2efb8f952f9c9711650b447 Author: Adam Jackson <ajax@redhat.com> Date: Thu Apr 5 13:07:09 2018 -0400 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>
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/programs/Xserver/mi/miexpose.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/mi/miexpose.c b/nx-X11/programs/Xserver/mi/miexpose.c
index 8e60f475e..274a8d4ce 100644
--- a/nx-X11/programs/Xserver/mi/miexpose.c
+++ b/nx-X11/programs/Xserver/mi/miexpose.c
@@ -151,7 +151,7 @@ miHandleExposures(pSrcDrawable, pDstDrawable,
the window background
*/
WindowPtr pSrcWin;
- BoxRec expBox;
+ BoxRec expBox = { 0, };
Bool extents;
/* This prevents warning about pscr not being used. */