* [PATCH] Fix typecast warning with clang
@ 2024-12-19 3:27 Khem Raj
0 siblings, 0 replies; only message in thread
From: Khem Raj @ 2024-12-19 3:27 UTC (permalink / raw)
To: linux-nfs; +Cc: Khem Raj, Benjamin Coddington, Steve Dickson
Fixes
file.c:200:8: error: assigning to 'char *' from 'const char *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
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++;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-12-19 3:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-19 3:27 [PATCH] Fix typecast warning with clang Khem Raj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox