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:
parent
0a5526b958
commit
50ed5217b0
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue