From aa990b1451e87f2ad221b0a1a7ebfc0b1f369292 Mon Sep 17 00:00:00 2001 From: Ammar Faizi Date: Wed, 22 Jun 2022 09:02:02 +0700 Subject: [PATCH] lib/secure-streams: Fix clang build error `-Wunused-but-set-variable` When building with clang-15, I got the following error: ``` error: variable 'm' set but not used [-Werror,-Wunused-but-set-variable] int n, m = 0; ^ ``` Let's just remove the `m` variable here, it's not used. Signed-off-by: Ammar Faizi --- lib/secure-streams/protocols/ss-h1.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/secure-streams/protocols/ss-h1.c b/lib/secure-streams/protocols/ss-h1.c index 707ed8c5a..8bf622b01 100644 --- a/lib/secure-streams/protocols/ss-h1.c +++ b/lib/secure-streams/protocols/ss-h1.c @@ -313,7 +313,7 @@ static int lws_extract_metadata(lws_ss_handle_t *h, struct lws *wsi) { lws_ss_metadata_t *polmd = h->policy->metadata, *omd; - int n, m = 0; + int n; while (polmd) { @@ -410,7 +410,6 @@ lws_extract_metadata(lws_ss_handle_t *h, struct lws *wsi) } #endif - m++; polmd = polmd->next; }