From: Alan T. DeKok Date: Wed, 14 Dec 2022 16:16:46 +0000 (-0500) Subject: fix various build warnings with newer compilers X-Git-Tag: release_3_2_2~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8b1164bc7810e779b8d8cd33697cd0596fdb0f9a;p=thirdparty%2Ffreeradius-server.git fix various build warnings with newer compilers --- diff --git a/src/main/listen.c b/src/main/listen.c index 629dfcea2c..4a36eca6b6 100644 --- a/src/main/listen.c +++ b/src/main/listen.c @@ -2330,8 +2330,13 @@ static int proxy_socket_tcp_recv(rad_listen_t *listener) #endif #endif +#ifdef WITH_TLS +#define TLS_UNUSED +#else +#define TLS_UNUSED UNUSED +#endif -static int client_socket_encode(UNUSED rad_listen_t *listener, REQUEST *request) +static int client_socket_encode(TLS_UNUSED rad_listen_t *listener, REQUEST *request) { #ifdef WITH_TLS /* @@ -3492,7 +3497,6 @@ static void *recv_thread(void *arg) while (1) { this->recv(this); - DEBUG("%p", &this); } return NULL;