summaryrefslogtreecommitdiff
blob: 5cba628a07ca0e4973051caf69f5a241b755c663 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From 617aaf628962af85bf9b44ab517fec2b6fa178f9 Mon Sep 17 00:00:00 2001
From: David Seifert <soap@gentoo.org>
Date: Tue, 10 Mar 2020 11:20:12 +0100
Subject: [PATCH] Fix building under GCC 10 / -fno-common

* Define an enum type `TrgColumnType`, not an anonymous
  enum with an object called `TrgColumnType`.

Bug: https://bugs.gentoo.org/706980
---
 src/trg-tree-view.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/trg-tree-view.h b/src/trg-tree-view.h
index 435848f..363f662 100644
--- a/src/trg-tree-view.h
+++ b/src/trg-tree-view.h
@@ -51,7 +51,7 @@ GtkWidget *trg_tree_view_new(void);
 
 G_END_DECLS GList *trg_tree_view_get_selected_refs_list(GtkTreeView * tv);
 
-enum {
+enum TrgColumnType {
     TRG_COLTYPE_ICONTEXT,
     TRG_COLTYPE_FILEICONTEXT,
     TRG_COLTYPE_WANTED,
@@ -65,7 +65,7 @@ enum {
     TRG_COLTYPE_PRIO,
     TRG_COLTYPE_NUMGTZERO,
     TRG_COLTYPE_NUMGTEQZERO
-} TrgColumnType;
+};
 
 typedef struct {
     gint model_column;