From 4e337206b5ce0057a1330ed8e281a2b37a3bf8bb Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Tue, 27 Jun 2017 15:16:10 +0200 Subject: man: fix compiler warning about a const -> non-const cast In b25a7c28a (mingw32: add man, 2012-06-26), the next_path_sep() call was introduced. As we pass in a non-const parameter, it is safe to cast the result back to a non-const pointer, too. Signed-off-by: Johannes Schindelin Signed-off-by: Ron Yorston --- miscutils/man.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miscutils/man.c b/miscutils/man.c index 68a75c6d7..fb96cae02 100644 --- a/miscutils/man.c +++ b/miscutils/man.c @@ -201,7 +201,7 @@ static char **add_MANPATH(char **man_path_list, int *count_mp, char *path) char **path_element; #if ENABLE_PLATFORM_MINGW32 - next_path = next_path_sep(path); + next_path = (char *)next_path_sep(path); #else next_path = strchr(path, ':'); #endif -- cgit v1.2.3-55-g6feb