]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
fix various build warnings with newer compilers
authorAlan T. DeKok <aland@freeradius.org>
Wed, 14 Dec 2022 16:16:46 +0000 (11:16 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 14 Dec 2022 16:19:43 +0000 (11:19 -0500)
src/main/listen.c

index 629dfcea2c9318a2d6aecd19ee73f06d4f16740a..4a36eca6b643e279b075b4747cebbeaf42a0dea8 100644 (file)
@@ -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;