diff options
author | Benjamin Barenblat <bbaren@debian.org> | 2020-04-20 19:09:19 -0400 |
---|---|---|
committer | Benjamin Barenblat <bbaren@debian.org> | 2020-04-20 19:12:39 -0400 |
commit | 6d0dc6d70284b8500476fe43ce0e4d7c3179bdf5 (patch) | |
tree | 2c51c6efd7e66d26e73c7c8b1e2e6d1bd0f6616c /debian/patches/fno-common.diff | |
parent | 347063512721dfa6252af0fbd2869576f595c761 (diff) |
Fix building with `-fno-common`
Backport a patch from upstream to unbreak the build with `-fno-common`
(as set by default in GCC 10).
Diffstat (limited to 'debian/patches/fno-common.diff')
-rw-r--r-- | debian/patches/fno-common.diff | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/patches/fno-common.diff b/debian/patches/fno-common.diff new file mode 100644 index 0000000..7804731 --- /dev/null +++ b/debian/patches/fno-common.diff @@ -0,0 +1,20 @@ +From: David Seifert <soap@gentoo.org> +Subject: Fix building under GCC 10 / -fno-common +Origin: upstream, https://github.com/transmission-remote-gtk/transmission-remote-gtk/commit/b20655081332847426a7d10189bb1e2369efea42 +Bug-Debian: https://bugs.debian.org/957883 +Bug-Gentoo: https://bugs.gentoo.org/706980 +Forwarded: https://github.com/transmission-remote-gtk/transmission-remote-gtk/pull/92 +Applied-Upstream: https://github.com/transmission-remote-gtk/transmission-remote-gtk/commit/b20655081332847426a7d10189bb1e2369efea42 + +Add a `typedef` to avoid defining a variable. +--- 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 { ++typedef enum { + TRG_COLTYPE_ICONTEXT, + TRG_COLTYPE_FILEICONTEXT, + TRG_COLTYPE_WANTED, |