diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-08-31 19:43:35 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-09-05 22:49:34 -0700 |
commit | fa3ccbc37d462606c852033fb790bd83e9e2ecb2 (patch) | |
tree | 5fd9bcf61be2dae55d576c837dcf0a96d7305ee1 /meta-oe/recipes-connectivity/wifi-test-suite | |
parent | aec96f23775b946cf99c39e7274bcc8fdd4711ca (diff) | |
download | meta-openembedded-fa3ccbc37d462606c852033fb790bd83e9e2ecb2.tar.gz |
wifi-test-suite: Fix build with clang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-connectivity/wifi-test-suite')
-rw-r--r-- | meta-oe/recipes-connectivity/wifi-test-suite/files/0001-wfa_cmdproc-Store-return-value-into-location.patch | 32 | ||||
-rw-r--r-- | meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_10.10.1.bb (renamed from meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb) | 3 |
2 files changed, 34 insertions, 1 deletions
diff --git a/meta-oe/recipes-connectivity/wifi-test-suite/files/0001-wfa_cmdproc-Store-return-value-into-location.patch b/meta-oe/recipes-connectivity/wifi-test-suite/files/0001-wfa_cmdproc-Store-return-value-into-location.patch new file mode 100644 index 000000000..074f0fe7b --- /dev/null +++ b/meta-oe/recipes-connectivity/wifi-test-suite/files/0001-wfa_cmdproc-Store-return-value-into-location.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 2b7d6cf62296ff4e25e5ad909aa39a257bf9ff78 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 31 Aug 2022 19:37:35 -0700 | ||
4 | Subject: [PATCH] wfa_cmdproc: Store return value into location | ||
5 | |||
6 | Fixes | ||
7 | | wfa_cmdproc.c:100:20: error: incompatible integer to pointer conversion assigning to 'int *' from 'int' [-Wint-conversion] | ||
8 | | paramValue = atoi(str); | ||
9 | | ^ ~~~~~~~~~ | ||
10 | |||
11 | Upstream-Status: Submitted [https://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT/pull/57] | ||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | --- | ||
14 | lib/wfa_cmdproc.c | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/lib/wfa_cmdproc.c b/lib/wfa_cmdproc.c | ||
18 | index 9f5fd16..49a3f16 100644 | ||
19 | --- a/lib/wfa_cmdproc.c | ||
20 | +++ b/lib/wfa_cmdproc.c | ||
21 | @@ -97,7 +97,7 @@ int getParamValueInt(char *pcmdStr, char *pParam, int *paramValue) | ||
22 | if(strcasecmp(pcmdStr, pParam) == 0) | ||
23 | { | ||
24 | str = strtok_r(NULL, ",", &pcmdStr); | ||
25 | - paramValue = atoi(str); | ||
26 | + *paramValue = atoi(str); | ||
27 | return 0; | ||
28 | } | ||
29 | return -1; | ||
30 | -- | ||
31 | 2.37.3 | ||
32 | |||
diff --git a/meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb b/meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_10.10.1.bb index 490f8324b..eda01ca38 100644 --- a/meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb +++ b/meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_10.10.1.bb | |||
@@ -8,13 +8,14 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=0542427ed5c315ca34aa09ae7a85ed32" | |||
8 | SECTION = "test" | 8 | SECTION = "test" |
9 | 9 | ||
10 | S = "${WORKDIR}/git" | 10 | S = "${WORKDIR}/git" |
11 | SRCREV = "2da947374c8324f88a0e2155aeba4cf75464b0d8" | 11 | SRCREV = "12e85fbeca8ca21a632d18e55089a8a7606d64aa" |
12 | SRC_URI = "git://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT.git;branch=master;protocol=https \ | 12 | SRC_URI = "git://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT.git;branch=master;protocol=https \ |
13 | file://0001-Use-toolchain-from-environment-variables.patch \ | 13 | file://0001-Use-toolchain-from-environment-variables.patch \ |
14 | file://0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch \ | 14 | file://0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch \ |
15 | file://0003-fix-path-to-usr-sbin-for-script-and-make-script-for-.patch \ | 15 | file://0003-fix-path-to-usr-sbin-for-script-and-make-script-for-.patch \ |
16 | file://0004-run-ranlib-per-library-and-use-AR.patch \ | 16 | file://0004-run-ranlib-per-library-and-use-AR.patch \ |
17 | file://fno-common.patch \ | 17 | file://fno-common.patch \ |
18 | file://0001-wfa_cmdproc-Store-return-value-into-location.patch \ | ||
18 | " | 19 | " |
19 | 20 | ||
20 | # to avoid host path QA error | 21 | # to avoid host path QA error |