Blob Blame History Raw
From e116d83eecdc53ccbfc907c212c248cb4393f416 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <petr.pisar@atlas.cz>
Date: Wed, 22 Jan 2020 19:36:06 +0100
Subject: [PATCH] Fix building with GCC 10
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

A global variable was defined instead of declared in a header file. As
a result, GCC 10, that defaults to -fno-common, reporter an error on
multiple definitions.

Signed-off-by: Petr Písař <petr.pisar@atlas.cz>
---
 src/shigofumi.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/shigofumi.h b/src/shigofumi.h
index ebe3985..67d9ca1 100644
--- a/src/shigofumi.h
+++ b/src/shigofumi.h
@@ -16,7 +16,7 @@
 extern shi_state state;*/
 
 /* UI */
-FILE *output;
+extern FILE *output;
 
 /* Data */
 extern struct isds_list *boxes;
-- 
2.21.1