From 5e7a7c046dc699793c86a7ef2858bd70d4f901a3 Mon Sep 17 00:00:00 2001 From: Koichiro Iwao Date: Tue, 14 Apr 2026 15:24:33 +0900 Subject: [PATCH] Supress -Wunused-function warnings `sig64_to_uint64()` is only called when devel logging is enabled. Guard the function with USE_DEVEL_LOGGING macro. --- libxrdp/xrdp_sec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libxrdp/xrdp_sec.c b/libxrdp/xrdp_sec.c index 673e81a9..6f85141e 100644 --- a/libxrdp/xrdp_sec.c +++ b/libxrdp/xrdp_sec.c @@ -960,6 +960,8 @@ xrdp_sec_check_sig(struct xrdp_sec *self, const char *sig, int sig_len, /*****************************************************************************/ /* Function to return a 64-bit int from an 64 bit signature */ + +#ifdef USE_DEVEL_LOGGING static uint64_t sig64_to_uint64(const char sig[], int sig_len) { @@ -980,6 +982,7 @@ sig64_to_uint64(const char sig[], int sig_len) return rv; } +#endif /*****************************************************************************/ static void