diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2021-11-28 13:05:36 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2021-12-03 18:38:19 +0000 |
commit | a03ab7e51a9f2239c698749df401cedf8386e721 (patch) | |
tree | 1eb226771a93f22e1ebe6234e80c999bb8fd6e03 /xlsfonts.c | |
parent | 7b84a6ffa8bae2dd9fe8cb1c8bc5b0b198584d8d (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>
Diffstat (limited to 'xlsfonts.c')
-rw-r--r-- | xlsfonts.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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", |