From 7d1a019734339b9db5605c0df85eb1363d70e21a Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 29 Jan 2022 14:14:12 -0800 Subject: [PATCH] libwebsockets: fix compilation with newer GCC Errors on uninitialized variable. No idea why only on powerpc64. Signed-off-by: Rosen Penev --- libs/libwebsockets/Makefile | 2 +- libs/libwebsockets/patches/010-uninit.patch | 23 +++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 libs/libwebsockets/patches/010-uninit.patch diff --git a/libs/libwebsockets/Makefile b/libs/libwebsockets/Makefile index 9c6f99f69..f43727993 100644 --- a/libs/libwebsockets/Makefile +++ b/libs/libwebsockets/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libwebsockets PKG_VERSION:=4.2.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) diff --git a/libs/libwebsockets/patches/010-uninit.patch b/libs/libwebsockets/patches/010-uninit.patch new file mode 100644 index 000000000..7895bf606 --- /dev/null +++ b/libs/libwebsockets/patches/010-uninit.patch @@ -0,0 +1,23 @@ +From 1f9925b44379941065690f0dce8ca0c79414b9f1 Mon Sep 17 00:00:00 2001 +From: Rosen Penev +Date: Tue, 1 Feb 2022 09:13:11 +0000 +Subject: [PATCH] genec: show correct nid when not allowed + +As noticed by gcc11 warning + +https://github.com/warmcat/libwebsockets/pull/2551 +--- + lib/tls/lws-genec-common.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/lib/tls/lws-genec-common.c ++++ b/lib/tls/lws-genec-common.c +@@ -94,7 +94,7 @@ lws_genec_confirm_curve_allowed_by_tls_i + } + } while (e > 0); + +- lwsl_err("%s: unsupported curve group nid %d\n", __func__, n); ++ lwsl_err("%s: unsupported curve group nid %d\n", __func__, id); + + return -1; + }