[gtksourceview/avoid-C4098: 2/2] gtksourcevimcommand.c: Avoid returning value in void function
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/avoid-C4098: 2/2] gtksourcevimcommand.c: Avoid returning value in void function
- Date: Mon, 22 Nov 2021 08:39:55 +0000 (UTC)
commit 34b10526d57b2b0ff112927a48dd83598fc76609
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon Nov 22 16:26:23 2021 +0800
gtksourcevimcommand.c: Avoid returning value in void function
On Visual Studio builds against GLib 2.68.x or later, warning C4098
(returning a value in a void-return-type function) is considered to be
an error, so avoid doing so.
gtksourceview/vim/gtksourcevimcommand.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtksourceview/vim/gtksourcevimcommand.c b/gtksourceview/vim/gtksourcevimcommand.c
index c1d73abe..cca0a6f7 100644
--- a/gtksourceview/vim/gtksourcevimcommand.c
+++ b/gtksourceview/vim/gtksourcevimcommand.c
@@ -178,13 +178,13 @@ gtk_source_vim_command_shift (GtkSourceVimCommand *self,
static void
gtk_source_vim_command_indent (GtkSourceVimCommand *self)
{
- return gtk_source_vim_command_shift (self, 1);
+ gtk_source_vim_command_shift (self, 1);
}
static void
gtk_source_vim_command_unindent (GtkSourceVimCommand *self)
{
- return gtk_source_vim_command_shift (self, -1);
+ gtk_source_vim_command_shift (self, -1);
}
static void
@@ -451,13 +451,13 @@ gtk_source_vim_command_change_case (GtkSourceVimCommand *self,
static void
gtk_source_vim_command_upcase (GtkSourceVimCommand *self)
{
- return gtk_source_vim_command_change_case (self, GTK_SOURCE_CHANGE_CASE_UPPER);
+ gtk_source_vim_command_change_case (self, GTK_SOURCE_CHANGE_CASE_UPPER);
}
static void
gtk_source_vim_command_downcase (GtkSourceVimCommand *self)
{
- return gtk_source_vim_command_change_case (self, GTK_SOURCE_CHANGE_CASE_LOWER);
+ gtk_source_vim_command_change_case (self, GTK_SOURCE_CHANGE_CASE_LOWER);
}
static char *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]