diff options
author | Khem Raj <raj.khem@gmail.com> | 2024-12-20 09:14:46 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-12-20 18:00:26 +0000 |
commit | 9dbeec7fa712ec6149b955721343bf2651fd72de (patch) | |
tree | 7130fc472053b04bd0820b166bb9c08e2a268623 /meta/recipes-connectivity | |
parent | c03be6b81ca17df7d710dbc67404f655e007a175 (diff) | |
download | poky-9dbeec7fa712ec6149b955721343bf2651fd72de.tar.gz |
nfs-utils: Use v2 of upstream patch for tpyecast fix
(From OE-Core rev: a2c5b2cad7857250b4a1b36ba792a8110989733a)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity')
-rw-r--r-- | meta/recipes-connectivity/nfs-utils/nfs-utils/0001-Fix-typecast-warning-with-clang.patch | 31 |
1 files changed, 17 insertions, 14 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 index 4b38db1f74..f493a3051e 100644 --- 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 | |||
@@ -1,29 +1,32 @@ | |||
1 | From bbed752dfad73738baefe518e5959b5c0f038c75 Mon Sep 17 00:00:00 2001 | 1 | From 0a64c5ad17786796d84390e480a38b4f762229ae Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 18 Dec 2024 19:20:39 -0800 | 3 | Date: Wed, 18 Dec 2024 19:20:39 -0800 |
4 | Subject: [PATCH] Fix typecast warning with clang | 4 | Subject: [PATCH v2] Fix typecast warning with clang |
5 | 5 | ||
6 | Fixes | 6 | Fixes |
7 | file.c:200:8: error: assigning to 'char *' from 'const char *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] | 7 | file.c:200:8: error: assigning to 'char *' from 'const char *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] |
8 | 8 | ||
9 | Upstream-Status: Submitted [https://marc.info/?l=linux-nfs&m=173457863307678&w=2] | 9 | Upstream-Status: Submitted [https://marc.info/?l=linux-nfs&m=173463533411103&w=2] |
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
11 | Cc: Benjamin Coddington <bcodding@redhat.com> | 11 | Cc: Benjamin Coddington <bcodding@redhat.com> |
12 | Cc: Steve Dickson <steved@redhat.com> | 12 | Cc: Steve Dickson <steved@redhat.com> |
13 | --- | 13 | --- |
14 | support/nsm/file.c | 2 +- | 14 | v2: Make base as const char pointer insread of trying type punning |
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | 15 | |
16 | support/nsm/file.c | 3 ++- | ||
17 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
16 | 18 | ||
17 | diff --git a/support/nsm/file.c b/support/nsm/file.c | 19 | diff --git a/support/nsm/file.c b/support/nsm/file.c |
18 | index de122b0..0fa6164 100644 | 20 | index de122b0f..68f99bf0 100644 |
19 | --- a/support/nsm/file.c | 21 | --- a/support/nsm/file.c |
20 | +++ b/support/nsm/file.c | 22 | +++ b/support/nsm/file.c |
21 | @@ -197,7 +197,7 @@ nsm_make_temp_pathname(const char *pathname) | 23 | @@ -184,7 +184,8 @@ static char * |
22 | 24 | nsm_make_temp_pathname(const char *pathname) | |
23 | base = strrchr(pathname, '/'); | 25 | { |
24 | if (base == NULL) | 26 | size_t size; |
25 | - base = pathname; | 27 | - char *path, *base; |
26 | + base = (char*)pathname; | 28 | + char *path; |
27 | else | 29 | + const char *base; |
28 | base++; | 30 | int len; |
29 | 31 | ||
32 | size = strlen(pathname) + sizeof(".new") + 1; | ||