1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

From aa990b1451 Mon Sep 17 00:00:00 2001

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 <ammarfaizi2@gnuweeb.org>
This commit is contained in:
Ammar Faizi 2022-06-22 09:02:02 +07:00 committed by Andy Green
parent 0a5526b958
commit 50ed5217b0

View file

@ -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;
}