[PATCH:xdm 4/5] greeter: Remove unused extern dpy that is shadowed by local variables

Mark Kettenis mark.kettenis at xs4all.nl
Sun Feb 20 03:29:12 PST 2011


> From: Alan Coopersmith <alan.coopersmith at oracle.com>
> Date: Sat, 19 Feb 2011 22:36:40 -0800
> 
> Resolves these warnings from gcc -Wshadow:
> greet.c: In function `InitGreet':
> greet.c:244: warning: declaration of 'dpy' shadows a global declaration
> greet.c:146: warning: shadowed declaration is here
> greet.c: In function `CloseGreet':
> greet.c:326: warning: declaration of 'dpy' shadows a global declaration
> greet.c:146: warning: shadowed declaration is here
> greet.c: At top level:
> greet.c:431: warning: declaration of 'dpy' shadows a global declaration
> greet.c:146: warning: shadowed declaration is here
> 
> Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

Reviewed-by: Mark Kettenis <kettenis at openbsd.org>

> ---
>  greeter/greet.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)


More information about the xorg-devel mailing list