|
|
e5285ef |
From be7f44f1945a569494d46c60eaf6e7b39b2bb48b Mon Sep 17 00:00:00 2001
|
|
|
e5285ef |
From: Hans de Goede <hdegoede@redhat.com>
|
|
|
e5285ef |
Date: Tue, 25 Feb 2020 10:15:42 +0100
|
|
|
e5285ef |
Subject: [PATCH] Fix compilation with gcc10 / -fno-common
|
|
|
e5285ef |
|
|
|
e5285ef |
gcc10 defaults to -fno-common, meaning that non static symbols can
|
|
|
e5285ef |
only be declared once. Make the parent_class variable in level.c and
|
|
|
e5285ef |
theme.c static to fix building with gcc10.
|
|
|
e5285ef |
---
|
|
|
e5285ef |
src/level.c | 2 +-
|
|
|
e5285ef |
src/theme.c | 2 +-
|
|
|
e5285ef |
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
e5285ef |
|
|
|
e5285ef |
diff --git a/src/level.c b/src/level.c
|
|
|
e5285ef |
index 160672d..5fbf6af 100644
|
|
|
e5285ef |
--- a/src/level.c
|
|
|
e5285ef |
+++ b/src/level.c
|
|
|
e5285ef |
@@ -31,7 +31,7 @@ static void level_class_init (GObjectClass *class);
|
|
|
e5285ef |
static void level_init (Level *level);
|
|
|
e5285ef |
static void level_finalize (GObject *object);
|
|
|
e5285ef |
|
|
|
e5285ef |
-GObjectClass *parent_class;
|
|
|
e5285ef |
+static GObjectClass *parent_class;
|
|
|
e5285ef |
|
|
|
e5285ef |
/*=================================================================
|
|
|
e5285ef |
|
|
|
e5285ef |
diff --git a/src/theme.c b/src/theme.c
|
|
|
e5285ef |
index 45f3086..88acb00 100644
|
|
|
e5285ef |
--- a/src/theme.c
|
|
|
e5285ef |
+++ b/src/theme.c
|
|
|
e5285ef |
@@ -32,7 +32,7 @@ static void theme_init (Theme *theme);
|
|
|
e5285ef |
static void theme_finalize (GObject *object);
|
|
|
e5285ef |
static void destroy_theme_image (gpointer data);
|
|
|
e5285ef |
|
|
|
e5285ef |
-GObjectClass *parent_class;
|
|
|
e5285ef |
+static GObjectClass *parent_class;
|
|
|
e5285ef |
|
|
|
e5285ef |
GType theme_get_type (void)
|
|
|
e5285ef |
{
|
|
|
e5285ef |
--
|
|
|
e5285ef |
2.25.1
|
|
|
e5285ef |
|