aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/message.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-01-18 20:23:46 +0100
committerGitHub <noreply@github.com>2023-01-18 20:23:46 +0100
commit42d5142367c375be5cbdfbf11d150a5ebe8c30d6 (patch)
treeb768c335378d87e83b21880323883200430caeba /src/nvim/message.c
parent92a46727f767d16dfedeaf9a48459e0df1c7a082 (diff)
downloadrneovim-42d5142367c375be5cbdfbf11d150a5ebe8c30d6.tar.gz
rneovim-42d5142367c375be5cbdfbf11d150a5ebe8c30d6.tar.bz2
rneovim-42d5142367c375be5cbdfbf11d150a5ebe8c30d6.zip
ci: enable CI_BUILD on windows (#21557)
This will ensure warnings are treated as errors when using MSVC. Also fix const correctness warnings. The warnings in mbyte.c are false positives that triggers this warning on MSVC v19.32 and lower, which our CI still use. The (void *) casts can be removed once the CI MSVC version has been upgraded to v19.33 or higher.
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r--src/nvim/message.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c
index de4acd601f..7f29b19031 100644
--- a/src/nvim/message.c
+++ b/src/nvim/message.c
@@ -3006,7 +3006,7 @@ static int do_more_prompt(int typed_char)
#if defined(MSWIN)
/// Headless (no UI) error message handler.
-static void do_msg(char *str, bool errmsg)
+static void do_msg(const char *str, bool errmsg)
{
static bool did_err = false;
assert(str != NULL);
@@ -3026,13 +3026,13 @@ static void do_msg(char *str, bool errmsg)
}
}
-void os_errmsg(char *str)
+void os_errmsg(const char *str)
{
do_msg(str, true);
}
/// Headless (no UI) message handler.
-void os_msg(char *str)
+void os_msg(const char *str)
{
do_msg(str, false);
}