mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
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>
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
|||||||
|
From bbed752dfad73738baefe518e5959b5c0f038c75 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Khem Raj <raj.khem@gmail.com>
|
||||||
|
Date: Wed, 18 Dec 2024 19:20:39 -0800
|
||||||
|
Subject: [PATCH] Fix typecast warning with clang
|
||||||
|
|
||||||
|
Fixes
|
||||||
|
file.c:200:8: error: assigning to 'char *' from 'const char *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
|
||||||
|
|
||||||
|
Upstream-Status: Submitted [https://marc.info/?l=linux-nfs&m=173457863307678&w=2]
|
||||||
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||||
|
Cc: Benjamin Coddington <bcodding@redhat.com>
|
||||||
|
Cc: Steve Dickson <steved@redhat.com>
|
||||||
|
---
|
||||||
|
support/nsm/file.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/support/nsm/file.c b/support/nsm/file.c
|
||||||
|
index de122b0..0fa6164 100644
|
||||||
|
--- a/support/nsm/file.c
|
||||||
|
+++ b/support/nsm/file.c
|
||||||
|
@@ -197,7 +197,7 @@ nsm_make_temp_pathname(const char *pathname)
|
||||||
|
|
||||||
|
base = strrchr(pathname, '/');
|
||||||
|
if (base == NULL)
|
||||||
|
- base = pathname;
|
||||||
|
+ base = (char*)pathname;
|
||||||
|
else
|
||||||
|
base++;
|
||||||
|
|
||||||
@@ -31,6 +31,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.x
|
|||||||
file://0001-Makefile.am-fix-undefined-function-for-libnsm.a.patch \
|
file://0001-Makefile.am-fix-undefined-function-for-libnsm.a.patch \
|
||||||
file://clang-warnings.patch \
|
file://clang-warnings.patch \
|
||||||
file://0001-locktest-Makefile.am-Do-not-use-build-flags.patch \
|
file://0001-locktest-Makefile.am-Do-not-use-build-flags.patch \
|
||||||
|
file://0001-Fix-typecast-warning-with-clang.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
SRC_URI[sha256sum] = "a39bbea76ac0ab9e6e8699caf3c308b6b310c20d458e8fa8606196d358e7fb15"
|
SRC_URI[sha256sum] = "a39bbea76ac0ab9e6e8699caf3c308b6b310c20d458e8fa8606196d358e7fb15"
|
||||||
|
|||||||
Reference in New Issue
Block a user