diff options
| author | Khem Raj <raj.khem@gmail.com> | 2024-12-18 19:35:59 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-12-20 15:47:14 +0000 |
| commit | 8a051bd0ea67e16c6eaac82036c62bfc933f6978 (patch) | |
| tree | f0eea2e24608fa440a0bc1d548b8f71c94d34fb2 | |
| parent | 9008c64e67ce94b7c3f2018f88aadfcb07036521 (diff) | |
| download | poky-8a051bd0ea67e16c6eaac82036c62bfc933f6978.tar.gz | |
nfs-utils: Fix warnings found with clang
(From OE-Core rev: 5a6232b730e8d791cd270267cb32bbe15cc1ce14)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-connectivity/nfs-utils/nfs-utils/0001-Fix-typecast-warning-with-clang.patch | 29 | ||||
| -rw-r--r-- | meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.2.bb | 1 |
2 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-Fix-typecast-warning-with-clang.patch b/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-Fix-typecast-warning-with-clang.patch new file mode 100644 index 0000000000..4b38db1f74 --- /dev/null +++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-Fix-typecast-warning-with-clang.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | From bbed752dfad73738baefe518e5959b5c0f038c75 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Wed, 18 Dec 2024 19:20:39 -0800 | ||
| 4 | Subject: [PATCH] Fix typecast warning with clang | ||
| 5 | |||
| 6 | Fixes | ||
| 7 | file.c:200:8: error: assigning to 'char *' from 'const char *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] | ||
| 8 | |||
| 9 | Upstream-Status: Submitted [https://marc.info/?l=linux-nfs&m=173457863307678&w=2] | ||
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 11 | Cc: Benjamin Coddington <bcodding@redhat.com> | ||
| 12 | Cc: Steve Dickson <steved@redhat.com> | ||
| 13 | --- | ||
| 14 | support/nsm/file.c | 2 +- | ||
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 16 | |||
| 17 | diff --git a/support/nsm/file.c b/support/nsm/file.c | ||
| 18 | index de122b0..0fa6164 100644 | ||
| 19 | --- a/support/nsm/file.c | ||
| 20 | +++ b/support/nsm/file.c | ||
| 21 | @@ -197,7 +197,7 @@ nsm_make_temp_pathname(const char *pathname) | ||
| 22 | |||
| 23 | base = strrchr(pathname, '/'); | ||
| 24 | if (base == NULL) | ||
| 25 | - base = pathname; | ||
| 26 | + base = (char*)pathname; | ||
| 27 | else | ||
| 28 | base++; | ||
| 29 | |||
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.2.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.2.bb index 543c68f7f5..18c4a249b3 100644 --- a/meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.2.bb +++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.2.bb | |||
| @@ -31,6 +31,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.x | |||
| 31 | file://0001-Makefile.am-fix-undefined-function-for-libnsm.a.patch \ | 31 | file://0001-Makefile.am-fix-undefined-function-for-libnsm.a.patch \ |
| 32 | file://clang-warnings.patch \ | 32 | file://clang-warnings.patch \ |
| 33 | file://0001-locktest-Makefile.am-Do-not-use-build-flags.patch \ | 33 | file://0001-locktest-Makefile.am-Do-not-use-build-flags.patch \ |
| 34 | file://0001-Fix-typecast-warning-with-clang.patch \ | ||
| 34 | " | 35 | " |
| 35 | 36 | ||
| 36 | SRC_URI[sha256sum] = "a39bbea76ac0ab9e6e8699caf3c308b6b310c20d458e8fa8606196d358e7fb15" | 37 | SRC_URI[sha256sum] = "a39bbea76ac0ab9e6e8699caf3c308b6b310c20d458e8fa8606196d358e7fb15" |
