Fix typecast warning with clang
Subsystems (2)
PATCH 1/1 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]
Signed-off-by Khem Raj <[email protected]>
Cc Benjamin Coddington <[email protected]>
Cc 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++;