From 846f4c003ecc708f51d642104df7b015cf873629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Tue, 1 Apr 2025 19:03:03 +0800 Subject: [PATCH] DisplayServer (Linux): silence compiler errors --- src/detection/displayserver/linux/xcb.c | 2 +- src/detection/displayserver/linux/xlib.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/detection/displayserver/linux/xcb.c b/src/detection/displayserver/linux/xcb.c index 3cc5580d8..d71434820 100644 --- a/src/detection/displayserver/linux/xcb.c +++ b/src/detection/displayserver/linux/xcb.c @@ -26,7 +26,7 @@ typedef struct XcbPropertyData FF_LIBRARY_SYMBOL(xcb_get_atom_name_reply) } XcbPropertyData; -static bool xcbInitPropertyData(void* libraryHandle, XcbPropertyData* propertyData) +static bool xcbInitPropertyData(FF_MAYBE_UNUSED void* libraryHandle, XcbPropertyData* propertyData) { FF_LIBRARY_LOAD_SYMBOL_PTR(libraryHandle, propertyData, xcb_intern_atom, false) FF_LIBRARY_LOAD_SYMBOL_PTR(libraryHandle, propertyData, xcb_intern_atom_reply, false) diff --git a/src/detection/displayserver/linux/xlib.c b/src/detection/displayserver/linux/xlib.c index 06422d613..ab16102be 100644 --- a/src/detection/displayserver/linux/xlib.c +++ b/src/detection/displayserver/linux/xlib.c @@ -17,7 +17,7 @@ typedef struct X11PropertyData FF_LIBRARY_SYMBOL(XFree) } X11PropertyData; -static bool x11InitPropertyData(void* libraryHandle, X11PropertyData* propertyData) +static bool x11InitPropertyData(FF_MAYBE_UNUSED void* libraryHandle, X11PropertyData* propertyData) { FF_LIBRARY_LOAD_SYMBOL_PTR(libraryHandle, propertyData, XInternAtom, false) FF_LIBRARY_LOAD_SYMBOL_PTR(libraryHandle, propertyData, XGetWindowProperty, false)