Supress -Wunused-function warnings

`sig64_to_uint64()` is only called when devel logging is enabled.
Guard the function with USE_DEVEL_LOGGING macro.
This commit is contained in:
Koichiro Iwao
2026-04-14 15:24:33 +09:00
parent 2e465c0b3a
commit 5e7a7c046d
+3
View File
@@ -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 */ /* Function to return a 64-bit int from an 64 bit signature */
#ifdef USE_DEVEL_LOGGING
static uint64_t static uint64_t
sig64_to_uint64(const char sig[], int sig_len) sig64_to_uint64(const char sig[], int sig_len)
{ {
@@ -980,6 +982,7 @@ sig64_to_uint64(const char sig[], int sig_len)
return rv; return rv;
} }
#endif
/*****************************************************************************/ /*****************************************************************************/
static void static void