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

Alan Coopersmith alan.coopersmith at oracle.com
Sat Feb 19 22:36:40 PST 2011


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>
---
 greeter/greet.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/greeter/greet.c b/greeter/greet.c
index d8ebb41..0639e76 100644
--- a/greeter/greet.c
+++ b/greeter/greet.c
@@ -143,8 +143,6 @@ pam_handle_t **(*__xdm_thepamhp)(void) = NULL;
 # include <krb5/krb5.h>
 #endif
 
-extern Display	*dpy;
-
 static int	done, code;
 #ifndef USE_PAM
 static char	name[NAME_LEN], password[PASSWORD_LEN];
-- 
1.7.3.2



More information about the xorg-devel mailing list