Package: giggle / 0.7-4

0001-Fix-build-failure-with-gcc-10.patch Patch series | download
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
36
37
From d1ecd44b709bba965b5cae00e3e76b3f74564e7f Mon Sep 17 00:00:00 2001
From: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Date: Thu, 23 Apr 2020 19:18:37 +0100
Subject: [PATCH] Fix build failure with gcc-10

It fails to build while building with gcc-10 with the error:
multiple definition of `giggle_diff_style'

giggle_diff_style is passed to g_enum_register_static() register the
static enumeration type with the given name and it should be done
as a typedef.

Bug-Link: https://bugs.debian.org/bug=957269
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
---

Forwarded to upstream at https://gitlab.gnome.org/GNOME/giggle/-/issues/11

 src/giggle-diff-view.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/giggle-diff-view.h b/src/giggle-diff-view.h
index 28266e3..3cba760 100644
--- a/src/giggle-diff-view.h
+++ b/src/giggle-diff-view.h
@@ -34,7 +34,7 @@ G_BEGIN_DECLS
 #define GIGGLE_IS_DIFF_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIGGLE_TYPE_DIFF_VIEW))
 #define GIGGLE_DIFF_VIEW_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GIGGLE_TYPE_DIFF_VIEW, GiggleDiffViewClass))
 
-enum {
+typedef enum {
 	STYLE_CHUNK,
 	STYLE_FILE,
 	STYLE_ALL,
-- 
2.11.0