diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2022-05-29 17:40:25 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2022-06-03 15:51:04 -0400 |
commit | 4dadf0ed93624a09b4a2f7403b79103b50681391 (patch) | |
tree | dfac9461bb41a0ef93b983a5a00a342b94815890 /src | |
parent | bafdc86cf32af60448db28ed03aa8230e7a14019 (diff) |
quiet unused-parameter warnings with _X_UNUSED
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/xftcolor.c | 8 | ||||
-rw-r--r-- | src/xftcore.c | 4 | ||||
-rw-r--r-- | src/xftdpy.c | 2 | ||||
-rw-r--r-- | src/xftfreetype.c | 4 | ||||
-rw-r--r-- | src/xftglyphs.c | 6 | ||||
-rw-r--r-- | src/xftinit.c | 2 | ||||
-rw-r--r-- | src/xftlist.c | 6 | ||||
-rw-r--r-- | src/xftrender.c | 2 | ||||
-rw-r--r-- | src/xftxlfd.c | 2 |
9 files changed, 18 insertions, 18 deletions
diff --git a/src/xftcolor.c b/src/xftcolor.c index 739dc2d..23551c6 100644 --- a/src/xftcolor.c +++ b/src/xftcolor.c @@ -23,11 +23,11 @@ #include "xftint.h" _X_EXPORT Bool -XftColorAllocName (Display *dpy, - _Xconst Visual *visual, - Colormap cmap, +XftColorAllocName (Display *dpy, + _Xconst Visual *visual _X_UNUSED, + Colormap cmap, _Xconst char *name, - XftColor *result) + XftColor *result) { XColor screen, exact; diff --git a/src/xftcore.c b/src/xftcore.c index 6cfa3bc..61a9164 100644 --- a/src/xftcore.c +++ b/src/xftcore.c @@ -233,7 +233,7 @@ typedef void (*XftSharpGlyph) (XftDraw *draw, int y); static XftSharpGlyph -_XftSharpGlyphFind (XftDraw *draw, XftFont *public) +_XftSharpGlyphFind (XftDraw *draw _X_UNUSED, XftFont *public) { XftFontInt *font = (XftFontInt *) public; @@ -923,7 +923,7 @@ _XftGlyphDefault (Display *dpy, XftFont *public) return font->glyphs[0]; } -static int XftGetImageErrorHandler (Display *dpy, XErrorEvent *error_event) +static int XftGetImageErrorHandler (Display *dpy _X_UNUSED, XErrorEvent *error_event _X_UNUSED) { return 0; } diff --git a/src/xftdpy.c b/src/xftdpy.c index 6a32206..a3ee607 100644 --- a/src/xftdpy.c +++ b/src/xftdpy.c @@ -25,7 +25,7 @@ _X_HIDDEN XftDisplayInfo *_XftDisplayInfo; static int -_XftCloseDisplay (Display *dpy, XExtCodes *codes) +_XftCloseDisplay (Display *dpy, XExtCodes *codes _X_UNUSED) { XftDisplayInfo *info, **prev; diff --git a/src/xftfreetype.c b/src/xftfreetype.c index 1f79a81..53cd5a4 100644 --- a/src/xftfreetype.c +++ b/src/xftfreetype.c @@ -717,7 +717,7 @@ bail0: } static void -XftFontInfoEmpty (Display *dpy, XftFontInfo *fi) +XftFontInfoEmpty (Display *dpy _X_UNUSED, XftFontInfo *fi) { if (fi->file) _XftReleaseFile (fi->file); @@ -1030,7 +1030,7 @@ XftFontOpenPattern (Display *dpy, FcPattern *pattern) } _X_EXPORT XftFont * -XftFontCopy (Display *dpy, XftFont *public) +XftFontCopy (Display *dpy _X_UNUSED, XftFont *public) { XftFontInt *font = (XftFontInt *) public; diff --git a/src/xftglyphs.c b/src/xftglyphs.c index b536df4..2895601 100644 --- a/src/xftglyphs.c +++ b/src/xftglyphs.c @@ -31,7 +31,7 @@ */ static void -_XftFontValidateMemory (Display *dpy, XftFont *public) +_XftFontValidateMemory (Display *dpy _X_UNUSED, XftFont *public) { XftFontInt *font = (XftFontInt *) public; unsigned long glyph_memory; @@ -813,9 +813,9 @@ XftFontCheckGlyph (Display *dpy, } _X_EXPORT FcBool -XftCharExists (Display *dpy, +XftCharExists (Display *dpy _X_UNUSED, XftFont *pub, - FcChar32 ucs4) + FcChar32 ucs4) { if (pub->charset) return FcCharSetHasChar (pub->charset, ucs4); diff --git a/src/xftinit.c b/src/xftinit.c index 78eb3ed..99b1547 100644 --- a/src/xftinit.c +++ b/src/xftinit.c @@ -25,7 +25,7 @@ static Bool _XftConfigInitialized; _X_EXPORT Bool -XftInit (_Xconst char *config) +XftInit (_Xconst char *config _X_UNUSED) { if (_XftConfigInitialized) return True; diff --git a/src/xftlist.c b/src/xftlist.c index f159745..1f54424 100644 --- a/src/xftlist.c +++ b/src/xftlist.c @@ -23,10 +23,10 @@ #include "xftint.h" _X_HIDDEN FcFontSet * -XftListFontsPatternObjects (Display *dpy, - int screen, +XftListFontsPatternObjects (Display *dpy _X_UNUSED, + int screen _X_UNUSED, FcPattern *pattern, - FcObjectSet *os) + FcObjectSet *os) { return FcFontList (NULL, pattern, os); } diff --git a/src/xftrender.c b/src/xftrender.c index 8a15ec6..ee5ae19 100644 --- a/src/xftrender.c +++ b/src/xftrender.c @@ -958,7 +958,7 @@ XftTextRenderUtf8 (Display *dpy, _X_EXPORT void XftTextRenderUtf16 (Display *dpy, - int op, + int op _X_UNUSED, Picture src, XftFont *pub, Picture dst, diff --git a/src/xftxlfd.c b/src/xftxlfd.c index dee2f44..bf605c2 100644 --- a/src/xftxlfd.c +++ b/src/xftxlfd.c @@ -81,7 +81,7 @@ XftGetInt(const char *ptr, int *val) } _X_EXPORT FcPattern * -XftXlfdParse (const char *xlfd_orig, FcBool ignore_scalable, FcBool complete) +XftXlfdParse (const char *xlfd_orig, FcBool ignore_scalable _X_UNUSED, FcBool complete _X_UNUSED) { FcPattern *pat; const char *xlfd = xlfd_orig; |