From d25f4f06bfcf51fb284f574b4514c78eb7e310b9 Mon Sep 17 00:00:00 2001 From: Andras Fekete Date: Mon, 11 Sep 2023 16:30:29 -0400 Subject: [PATCH] clang-tidy is being super picky --- examples/async/async_server.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/async/async_server.c b/examples/async/async_server.c index 12b24e78c..41eaae86e 100644 --- a/examples/async/async_server.c +++ b/examples/async/async_server.c @@ -105,12 +105,9 @@ int server_async_test(int argc, char** argv) /* declare wolfSSL objects */ WOLFSSL_CTX* ctx = NULL; WOLFSSL* ssl = NULL; -#ifdef HAVE_SIGNAL - sighandler_t sigRet = 0; -#endif #ifdef HAVE_SIGNAL - if ((sigRet = signal(SIGINT, sig_handler)) == SIG_ERR) { + if ((signal(SIGINT, sig_handler)) == SIG_ERR) { fprintf(stderr, "ERROR: failed to listen to SIGINT (errno: %d)\n",errno); goto exit; }