diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-08-28 14:08:17 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-08-28 23:57:15 -0700 |
| commit | 05f9c6f1ba1c424bbfe0deda5a3426e022867bb6 (patch) | |
| tree | 472404c1c2695a024ed03b9ebb7258f8315d2a66 /meta-networking/dynamic-layers/meta-python | |
| parent | dd8ceca71e96a12de6ea65339bf51fe9db6fdc2d (diff) | |
| download | meta-openembedded-05f9c6f1ba1c424bbfe0deda5a3426e022867bb6.tar.gz | |
crda: Fix build with clang-15
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/dynamic-layers/meta-python')
2 files changed, 60 insertions, 0 deletions
diff --git a/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/0001-reglib-Remove-unused-variables.patch b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/0001-reglib-Remove-unused-variables.patch new file mode 100644 index 0000000000..c6c3c53f19 --- /dev/null +++ b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/0001-reglib-Remove-unused-variables.patch | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | From 1bd6ff9d10c83afbc9954fc38b953e9167e6d4a9 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sun, 28 Aug 2022 14:01:55 -0700 | ||
| 4 | Subject: [PATCH] reglib: Remove unused variables | ||
| 5 | |||
| 6 | These counters are not used anywhere therefore delete them | ||
| 7 | Fixes | ||
| 8 | reglib.c:1015:15: error: variable 'i' set but not used [-Werror,-Wunused-but-set-variable] | ||
| 9 | unsigned int i = 0; | ||
| 10 | ^ | ||
| 11 | reglib.c:1062:15: error: variable 'lines' set but not used [-Werror,-Wunused-but-set-variable] | ||
| 12 | unsigned int lines = 0; | ||
| 13 | ^ | ||
| 14 | |||
| 15 | Upstream-Status: Pending | ||
| 16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 17 | --- | ||
| 18 | reglib.c | 4 ---- | ||
| 19 | 1 file changed, 4 deletions(-) | ||
| 20 | |||
| 21 | diff --git a/reglib.c b/reglib.c | ||
| 22 | index 8565a0b..6c62c2c 100644 | ||
| 23 | --- a/reglib.c | ||
| 24 | +++ b/reglib.c | ||
| 25 | @@ -1012,7 +1012,6 @@ static int reglib_find_next_country_stream(FILE *fp) | ||
| 26 | { | ||
| 27 | fpos_t prev_pos; | ||
| 28 | int r; | ||
| 29 | - unsigned int i = 0; | ||
| 30 | |||
| 31 | while(1) { | ||
| 32 | char line[1024]; | ||
| 33 | @@ -1030,7 +1029,6 @@ static int reglib_find_next_country_stream(FILE *fp) | ||
| 34 | line_p = fgets(line, sizeof(line), fp); | ||
| 35 | if (line_p == line) { | ||
| 36 | if (strspn(line, "\n") == strlen(line)) { | ||
| 37 | - i++; | ||
| 38 | continue; | ||
| 39 | } | ||
| 40 | if (strncmp(line, "country", 7) != 0) | ||
| 41 | @@ -1059,7 +1057,6 @@ struct ieee80211_regdomain *reglib_parse_country(FILE *fp) | ||
| 42 | |||
| 43 | FILE *reglib_create_parse_stream(FILE *f) | ||
| 44 | { | ||
| 45 | - unsigned int lines = 0; | ||
| 46 | FILE *fp; | ||
| 47 | |||
| 48 | fp = tmpfile(); | ||
| 49 | @@ -1076,7 +1073,6 @@ FILE *reglib_create_parse_stream(FILE *f) | ||
| 50 | if (line_p == line) { | ||
| 51 | if (strchr(line, '#') == NULL) { | ||
| 52 | fputs(line, fp); | ||
| 53 | - lines++; | ||
| 54 | } | ||
| 55 | continue; | ||
| 56 | } else | ||
| 57 | -- | ||
| 58 | 2.37.2 | ||
| 59 | |||
diff --git a/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda_3.18.bb b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda_3.18.bb index a616557e7c..2f4d4dac99 100644 --- a/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda_3.18.bb +++ b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda_3.18.bb | |||
| @@ -16,6 +16,7 @@ SRC_URI = "https://www.kernel.org/pub/software/network/${BPN}/${BP}.tar.xz \ | |||
| 16 | file://fix-issues-when-USE_OPENSSL-1.patch \ | 16 | file://fix-issues-when-USE_OPENSSL-1.patch \ |
| 17 | file://crda-4.14-python-3.patch \ | 17 | file://crda-4.14-python-3.patch \ |
| 18 | file://0001-Make-alpha2-to-be-3-characters-long.patch \ | 18 | file://0001-Make-alpha2-to-be-3-characters-long.patch \ |
| 19 | file://0001-reglib-Remove-unused-variables.patch \ | ||
| 19 | " | 20 | " |
| 20 | SRC_URI[md5sum] = "0431fef3067bf503dfb464069f06163a" | 21 | SRC_URI[md5sum] = "0431fef3067bf503dfb464069f06163a" |
| 21 | SRC_URI[sha256sum] = "43fcb9679f8b75ed87ad10944a506292def13e4afb194afa7aa921b01e8ecdbf" | 22 | SRC_URI[sha256sum] = "43fcb9679f8b75ed87ad10944a506292def13e4afb194afa7aa921b01e8ecdbf" |
