• Adam Jackson's avatar
    mi: Hush an almost certainly bogus warning · 57e87230
    Adam Jackson authored
    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: 's avatarAdam Jackson <ajax@redhat.com>
    Acked-by: 's avatarKeith Packard <keithp@keithp.com>
    57e87230
Name
Last commit
Last update
..
Makefile.am Loading commit data...
meson.build Loading commit data...
mi.h Loading commit data...
miarc.c Loading commit data...
mibitblt.c Loading commit data...
micmap.c Loading commit data...
micmap.h Loading commit data...
micoord.h Loading commit data...
micopy.c Loading commit data...
midash.c Loading commit data...
midispcur.c Loading commit data...
mieq.c Loading commit data...
miexpose.c Loading commit data...
mifillarc.c Loading commit data...
mifillarc.h Loading commit data...
mifillrct.c Loading commit data...
mifpoly.h Loading commit data...
migc.c Loading commit data...
migc.h Loading commit data...
miglblt.c Loading commit data...
miinitext.c Loading commit data...
miline.h Loading commit data...
mioverlay.c Loading commit data...
mioverlay.h Loading commit data...
mipointer.c Loading commit data...
mipointer.h Loading commit data...
mipointrst.h Loading commit data...
mipoly.c Loading commit data...
mipoly.h Loading commit data...
mipolypnt.c Loading commit data...
mipolyrect.c Loading commit data...
mipolyseg.c Loading commit data...
mipolytext.c Loading commit data...
mipushpxl.c Loading commit data...
miscanfill.h Loading commit data...
miscrinit.c Loading commit data...
misprite.c Loading commit data...
misprite.h Loading commit data...
mistruct.h Loading commit data...
mivalidate.h Loading commit data...
mivaltree.c Loading commit data...
miwideline.c Loading commit data...
miwideline.h Loading commit data...
miwindow.c Loading commit data...
mizerarc.c Loading commit data...
mizerarc.h Loading commit data...
mizerclip.c Loading commit data...
mizerline.c Loading commit data...