diff options
| -rw-r--r-- | meta-oe/recipes-connectivity/libwebsockets/libwebsockets/0001-core-net-Remove-unused-variable.patch | 54 | ||||
| -rw-r--r-- | meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.2.1.bb (renamed from meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.2.0.bb) | 6 |
2 files changed, 2 insertions, 58 deletions
diff --git a/meta-oe/recipes-connectivity/libwebsockets/libwebsockets/0001-core-net-Remove-unused-variable.patch b/meta-oe/recipes-connectivity/libwebsockets/libwebsockets/0001-core-net-Remove-unused-variable.patch deleted file mode 100644 index d648c284b5..0000000000 --- a/meta-oe/recipes-connectivity/libwebsockets/libwebsockets/0001-core-net-Remove-unused-variable.patch +++ /dev/null | |||
| @@ -1,54 +0,0 @@ | |||
| 1 | From cfa40cc1c2df6c64fb53bb4a2a56eb09e3e1309c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Fri, 4 Jun 2021 18:21:58 -0700 | ||
| 4 | Subject: [PATCH] core-net: Remove unused variable | ||
| 5 | |||
| 6 | variable 'n' is being set but it is not used anywhere, latest clang is | ||
| 7 | able to detect this and flags it | ||
| 8 | |||
| 9 | Fixes | ||
| 10 | |||
| 11 | lib/core-net/route.c:41:6: error: variable 'n' set but not used [-Werror,-Wunused-but-set-variable] | ||
| 12 | | int n = 0; | ||
| 13 | | ^ | ||
| 14 | |||
| 15 | Upstream-Status: Submitted [https://github.com/warmcat/libwebsockets/pull/2320] | ||
| 16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 17 | --- | ||
| 18 | lib/core-net/route.c | 7 +++---- | ||
| 19 | 1 file changed, 3 insertions(+), 4 deletions(-) | ||
| 20 | |||
| 21 | diff --git a/lib/core-net/route.c b/lib/core-net/route.c | ||
| 22 | index efe08ba1..6be93d62 100644 | ||
| 23 | --- a/lib/core-net/route.c | ||
| 24 | +++ b/lib/core-net/route.c | ||
| 25 | @@ -38,23 +38,22 @@ void | ||
| 26 | _lws_routing_entry_dump(lws_route_t *rou) | ||
| 27 | { | ||
| 28 | char sa[48], fin[192], *end = &fin[sizeof(fin)]; | ||
| 29 | - int n = 0; | ||
| 30 | |||
| 31 | if (rou->dest.sa4.sin_family) { | ||
| 32 | lws_sa46_write_numeric_address(&rou->dest, sa, sizeof(sa)); | ||
| 33 | - n += lws_snprintf(fin, lws_ptr_diff_size_t(end, fin), | ||
| 34 | + lws_snprintf(fin, lws_ptr_diff_size_t(end, fin), | ||
| 35 | "dst: %s/%d, ", sa, rou->dest_len); | ||
| 36 | } | ||
| 37 | |||
| 38 | if (rou->src.sa4.sin_family) { | ||
| 39 | lws_sa46_write_numeric_address(&rou->src, sa, sizeof(sa)); | ||
| 40 | - n += lws_snprintf(fin, lws_ptr_diff_size_t(end, fin), | ||
| 41 | + lws_snprintf(fin, lws_ptr_diff_size_t(end, fin), | ||
| 42 | "src: %s/%d, ", sa, rou->src_len); | ||
| 43 | } | ||
| 44 | |||
| 45 | if (rou->gateway.sa4.sin_family) { | ||
| 46 | lws_sa46_write_numeric_address(&rou->gateway, sa, sizeof(sa)); | ||
| 47 | - n += lws_snprintf(fin, lws_ptr_diff_size_t(end, fin), | ||
| 48 | + lws_snprintf(fin, lws_ptr_diff_size_t(end, fin), | ||
| 49 | "gw: %s, ", sa); | ||
| 50 | } | ||
| 51 | |||
| 52 | -- | ||
| 53 | 2.31.1 | ||
| 54 | |||
diff --git a/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.2.0.bb b/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.2.1.bb index 18b72ae8f5..685aebee59 100644 --- a/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.2.0.bb +++ b/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.2.1.bb | |||
| @@ -6,10 +6,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=c8bea43a2eb5d713c338819a0be07797" | |||
| 6 | DEPENDS = "zlib" | 6 | DEPENDS = "zlib" |
| 7 | 7 | ||
| 8 | S = "${WORKDIR}/git" | 8 | S = "${WORKDIR}/git" |
| 9 | SRCREV = "4b6a7982b6833c8ccac1f35caaf9e8ccc605ff9a" | 9 | SRCREV = "8a580b59b23d204ca72028370e97a8f6aa0c9202" |
| 10 | SRC_URI = "git://github.com/warmcat/libwebsockets.git;protocol=https;branch=v4.2-stable \ | 10 | SRC_URI = "git://github.com/warmcat/libwebsockets.git;protocol=https;branch=v4.2-stable" |
| 11 | file://0001-core-net-Remove-unused-variable.patch \ | ||
| 12 | " | ||
| 13 | 11 | ||
| 14 | UPSTREAM_CHECK_URI = "https://github.com/warmcat/${BPN}/releases" | 12 | UPSTREAM_CHECK_URI = "https://github.com/warmcat/${BPN}/releases" |
| 15 | UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)" | 13 | UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)" |
