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:
Jon Turney 2017-04-18 10:45:07 +01:00 committed by Adam Jackson
parent 319daa7a9f
commit e49f5947ed
2 changed files with 2 additions and 2 deletions

View File

@ -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");

View File

@ -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");