diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-06-27 03:33:30 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-06-27 03:35:30 +0000 |
commit | 6f479b76851b17527c9c8b12acf8553e95a590cf (patch) | |
tree | e3fc5e21cb8bc15e2296e0ad115940e8da13e9d3 | |
parent | 0cffb0a6b3602a00cebe2bbb7537d76727892959 (diff) | |
download | zsh-6f479b76851b17527c9c8b12acf8553e95a590cf.tar.gz zsh-6f479b76851b17527c9c8b12acf8553e95a590cf.tar.xz zsh-6f479b76851b17527c9c8b12acf8553e95a590cf.zip |
unposted (after 46068): Fix a compiler warning.
The warning was: . warning: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Src/Zle/zle_utils.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 0d3a50cd5..03fb6f9d9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2020-06-27 Daniel Shahaf <d.s@daniel.shahaf.name> + * unposted (after 46068): Src/Zle/zle_utils.c: Fix a compiler + warning. + * 46072 + 46136: Doc/Zsh/contrib.yo, Doc/Zsh/zle.yo, Functions/Misc/add-zle-hook-widget, Src/Zle/zle_thingy.c, Test/X04zlehighlight.ztst: Add the 'zle $widget -f nolast' diff --git a/Src/Zle/zle_utils.c b/Src/Zle/zle_utils.c index 927b88bba..c85f8450d 100644 --- a/Src/Zle/zle_utils.c +++ b/Src/Zle/zle_utils.c @@ -569,7 +569,7 @@ free_region_highlights_memos(void) for (rhp = region_highlights; rhp < region_highlights + n_region_highlights; rhp++) { - zfree(rhp->memo, 0); + zfree((char*) rhp->memo, 0); } } |