The Realize function names one of its arguments valueMask, so rename the local variable to xpmValueMask to reduce confusion and clear the gcc -Wshadow warning:
Login.c: In function `Realize': Login.c:1901: warning: declaration of 'valueMask' shadows a parameter Login.c:1871: warning: shadowed declaration is here Signed-off-by: Alan Coopersmith <[email protected]> --- greeter/Login.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/greeter/Login.c b/greeter/Login.c index 5bc8c05..1a02846 100644 --- a/greeter/Login.c +++ b/greeter/Login.c @@ -1898,7 +1898,7 @@ static void Realize ( * Create pixmap window */ { - unsigned long valueMask = CWBackPixel | CWBackPixmap; + unsigned long xpmValueMask = CWBackPixel | CWBackPixmap; XSetWindowAttributes windowAttributes = { 0 }; windowAttributes.background_pixel = w->core.background_pixel; @@ -1911,7 +1911,7 @@ static void Realize ( (w->core.height - w->login.logoHeight) /2, w->login.logoWidth, w->login.logoHeight, 0, CopyFromParent, InputOutput, CopyFromParent, - valueMask, &windowAttributes); + xpmValueMask, &windowAttributes); } /* -- 1.7.3.2 _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
