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 <[email protected]>
---
 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

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to