changeset 2334:6ad3cada768c default tip

Fix multiple declarations issue with vi_mode This fails compilation with GCC 10 or -fno-common in CFLAGS. Link: https://bugs.gentoo.org/707418
author Andrey Utkin <andrey_utkin@gentoo.org>
date Mon, 17 Feb 2020 23:44:03 +0000
parents 69d292ccf196
children
files mcabber/mcabber/screen.c mcabber/mcabber/screen.h
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/mcabber/screen.c	Mon Feb 17 23:40:49 2020 +0000
+++ b/mcabber/mcabber/screen.c	Mon Feb 17 23:44:03 2020 +0000
@@ -166,6 +166,8 @@
 gboolean chatstates_disabled;
 gboolean Autoaway;
 
+gboolean vi_mode;
+
 #define MAX_KEYSEQ_LENGTH 8
 
 typedef struct {
--- a/mcabber/mcabber/screen.h	Mon Feb 17 23:40:49 2020 +0000
+++ b/mcabber/mcabber/screen.h	Mon Feb 17 23:44:03 2020 +0000
@@ -16,7 +16,7 @@
 # include <panel.h>
 #endif
 
-gboolean vi_mode;
+extern gboolean vi_mode;
 
 #if defined(WITH_ENCHANT) || defined(WITH_ASPELL)
 void spellcheck_init(void);