nsm_make_temp_pathname: Removed A Warning
Subsystems (2)
PATCH 1/1 nsm_make_temp_pathname: Removed A Warning
file.c:200:22: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Signed-off-by Steve Dickson <[email protected]>
--- support/nsm/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
support/nsm/file.c +1 -1
@@ -197,7 +197,7 @@ nsm_make_temp_pathname(const char *pathname) base =strrchr (pathname,'/' );if (base ==NULL ) - base = pathname; + base = (char *)pathname;else base++;
Signature · 1 line
2.47.1
Quoted 12 lines · Steve Dickson
file.c:200:22: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Signed-off-by Steve Dickson <[email protected]>--- support/nsm/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)support/nsm/file.c +0
-0
support/nsm/file.c nsm_make_temp_pathname(const char *pathname) · line 203
Quoted 8 lines
support/nsm/file.c +1
-1@@ -197,7 +197,7 @@ nsm_make_temp_pathname(const char *pathname) base =strrchr (pathname,'/' );if (base ==NULL ) - base = pathname; + base = (char *)pathname;else base++;
NAK... to previous patches fix this problem.
steved.