summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2021-11-28 13:05:36 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2021-12-03 18:38:19 +0000
commita03ab7e51a9f2239c698749df401cedf8386e721 (patch)
tree1eb226771a93f22e1ebe6234e80c999bb8fd6e03
parent7b84a6ffa8bae2dd9fe8cb1c8bc5b0b198584d8d (diff)
Clear -Wshadow warning from gcc
xlsfonts.c: In function ‘do_query_font’: xlsfonts.c:628:24: warning: declaration of ‘dpy’ shadows a global declaration [-Wshadow] do_query_font(Display *dpy, char *name) ^~~ In file included from xlsfonts.c:37:0: dsimple.h:53:17: note: shadowed declaration is here extern Display *dpy; /* The current display */ ^~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xlsfonts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlsfonts.c b/xlsfonts.c
index d5163ae..b834637 100644
--- a/xlsfonts.c
+++ b/xlsfonts.c
@@ -625,10 +625,10 @@ print_character_metrics(register XFontStruct *info)
}
static void
-do_query_font(Display *dpy, char *name)
+do_query_font(Display *display, char *name)
{
register int i;
- register XFontStruct *info = XLoadQueryFont(dpy, name);
+ register XFontStruct *info = XLoadQueryFont(display, name);
if (!info) {
fprintf(stderr, "%s: unable to get info about font \"%s\"\n",