hw/xwin: Fix -Wmaybe-uninitialized warnings in engine CloseScreen wrappers
../hw/xwin/winshadgdi.c: In function ‘winCloseScreenShadowGDI’: ../hw/xwin/winshadgdi.c:632:12: warning: ‘fReturn’ may be used uninitialized in this function [-Wmaybe-uninitialized] ../hw/xwin/winshadgdi.c:579:10: note: ‘fReturn’ was declared here ../hw/xwin/winshadddnl.c: In function ‘winCloseScreenShadowDDNL’: ../hw/xwin/winshadddnl.c:711:12: warning: ‘fReturn’ may be used uninitialized in this function [-Wmaybe-uninitialized] ../hw/xwin/winshadddnl.c:661:10: note: ‘fReturn’ was declared here Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk> Reviewed-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
This commit is contained in:
parent
319daa7a9f
commit
e49f5947ed
|
@ -658,7 +658,7 @@ winCloseScreenShadowDDNL(ScreenPtr pScreen)
|
|||
{
|
||||
winScreenPriv(pScreen);
|
||||
winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
|
||||
Bool fReturn;
|
||||
Bool fReturn = TRUE;
|
||||
|
||||
#if CYGDEBUG
|
||||
winDebug("winCloseScreenShadowDDNL - Freeing screen resources\n");
|
||||
|
|
|
@ -576,7 +576,7 @@ winCloseScreenShadowGDI(ScreenPtr pScreen)
|
|||
{
|
||||
winScreenPriv(pScreen);
|
||||
winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
|
||||
Bool fReturn;
|
||||
Bool fReturn = TRUE;
|
||||
|
||||
#if CYGDEBUG
|
||||
winDebug("winCloseScreenShadowGDI - Freeing screen resources\n");
|
||||
|
|
Loading…
Reference in New Issue