aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/pango/glib-unused-but-set-global.patch
blob: e5eced8438bb60fff9a6c82f442ea8768fc56091 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
diff --git a/pango/fonts.c b/pango/fonts.c
index 1833ef94..f1e037ce 100644
--- a/pango/fonts.c
+++ b/pango/fonts.c
@@ -2979,6 +2979,7 @@ pango_font_family_class_init (PangoFontFamilyClass *class)
 static void
 pango_font_family_init (PangoFontFamily *family G_GNUC_UNUSED)
 {
+  (void)pango_font_family_parent_class;
 }
 
 /**
@@ -3150,6 +3151,7 @@ G_DEFINE_ABSTRACT_TYPE (PangoFontFace, pango_font_face, G_TYPE_OBJECT)
 static void
 pango_font_face_class_init (PangoFontFaceClass *class G_GNUC_UNUSED)
 {
+  (void)pango_font_face_parent_class;
 }
 
 static void
diff --git a/pango/pango-engine.c b/pango/pango-engine.c
index bda8eef1..b54ba0d7 100644
--- a/pango/pango-engine.c
+++ b/pango/pango-engine.c
@@ -30,6 +30,7 @@ G_DEFINE_ABSTRACT_TYPE (PangoEngine, pango_engine, G_TYPE_OBJECT);
 static void
 pango_engine_init (PangoEngine *self)
 {
+  (void)pango_engine_parent_class;
 }
 
 static void
@@ -44,6 +45,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
 static void
 pango_engine_lang_init (PangoEngineLang *self)
 {
+  (void)pango_engine_lang_parent_class;
 }
 
 static void
@@ -73,6 +75,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
 static void
 pango_engine_shape_init (PangoEngineShape *klass)
 {
+  (void)pango_engine_shape_parent_class;
 }
 
 static void
diff --git a/pango/pango-fontmap.c b/pango/pango-fontmap.c
index 89d627f1..1b2fa895 100644
--- a/pango/pango-fontmap.c
+++ b/pango/pango-fontmap.c
@@ -139,6 +139,7 @@ pango_font_map_class_init (PangoFontMapClass *class)
 static void
 pango_font_map_init (PangoFontMap *fontmap G_GNUC_UNUSED)
 {
+  (void)pango_font_map_parent_class;
 }
 
 /**
diff --git a/pango/pango-fontset.c b/pango/pango-fontset.c
index 3b8b3a4c..9c0ce2fc 100644
--- a/pango/pango-fontset.c
+++ b/pango/pango-fontset.c
@@ -38,6 +38,7 @@ G_DEFINE_ABSTRACT_TYPE (PangoFontset, pango_fontset, G_TYPE_OBJECT);
 static void
 pango_fontset_init (PangoFontset *self)
 {
+  (void)pango_fontset_parent_class;
 }
 
 static void
diff --git a/pango/pangocairo-fcfontmap.c b/pango/pangocairo-fcfontmap.c
index d73e38c4..f2938c94 100644
--- a/pango/pangocairo-fcfontmap.c
+++ b/pango/pangocairo-fcfontmap.c
@@ -203,6 +203,7 @@ pango_cairo_fc_font_map_class_init (PangoCairoFcFontMapClass *class)
 static void
 pango_cairo_fc_font_map_init (PangoCairoFcFontMap *cffontmap)
 {
+  (void)pango_cairo_fc_font_map_parent_class;
   cffontmap->serial = 1;
   cffontmap->dpi   = 96.0;
 }
diff --git a/pango/pangocairo-render.c b/pango/pangocairo-render.c
index 90b21e39..67cdf8f7 100644
--- a/pango/pangocairo-render.c
+++ b/pango/pangocairo-render.c
@@ -1026,6 +1026,7 @@ pango_cairo_renderer_draw_shape (PangoRenderer  *renderer,
 static void
 pango_cairo_renderer_init (PangoCairoRenderer *renderer G_GNUC_UNUSED)
 {
+  (void)pango_cairo_renderer_parent_class;
 }
 
 static void
diff --git a/pango/pangofc-decoder.c b/pango/pangofc-decoder.c
index 0d3b00a0..d54ef7e6 100644
--- a/pango/pangofc-decoder.c
+++ b/pango/pangofc-decoder.c
@@ -27,6 +27,7 @@ G_DEFINE_ABSTRACT_TYPE (PangoFcDecoder, pango_fc_decoder, G_TYPE_OBJECT)
 static void
 pango_fc_decoder_init (PangoFcDecoder *decoder G_GNUC_UNUSED)
 {
+  (void)pango_fc_decoder_parent_class;
 }
 
 static void
diff --git a/pango/pangoft2-render.c b/pango/pangoft2-render.c
index f2da8e7f..174c1fe9 100644
--- a/pango/pangoft2-render.c
+++ b/pango/pangoft2-render.c
@@ -69,6 +69,7 @@ G_DEFINE_TYPE (PangoFT2Renderer, pango_ft2_renderer, PANGO_TYPE_RENDERER)
 static void
 pango_ft2_renderer_init (PangoFT2Renderer *renderer G_GNUC_UNUSED)
 {
+  (void)pango_ft2_renderer_parent_class;
 }
 
 static void
diff --git a/tests/testboundaries.c b/tests/testboundaries.c
index dbc3b5b7..38356c4c 100644
--- a/tests/testboundaries.c
+++ b/tests/testboundaries.c
@@ -40,12 +40,6 @@
  */
 
 
-static int offset = 0;
-static int line = 0;
-static gunichar current_wc = 0;
-static const char *line_start = NULL;
-static const char *line_end = NULL;
-
 typedef void (* CharForeachFunc) (gunichar      wc,
 				  gunichar      prev_wc,
 				  gunichar      next_wc,
@@ -75,18 +69,12 @@ log_attr_foreach (const char     *text,
   if (next == end)
     return;
 
-  offset = 0;
-  line = 1;
-
   prev_type = (GUnicodeType) -1;
   prev_wc = 0;
 
   next_wc = g_utf8_get_char (next);
   next_type = g_unichar_type (next_wc);
 
-  line_start = text;
-  line_end = text;
-
   while (next_wc != 0)
     {
       GUnicodeType type;
@@ -95,10 +83,7 @@ log_attr_foreach (const char     *text,
       wc = next_wc;
       type = next_type;
 
-      current_wc = wc;
-
       next = g_utf8_next_char (next);
-      line_end = next;
 
       if (next >= end)
 	next_wc = 0;
@@ -118,14 +103,6 @@ log_attr_foreach (const char     *text,
       prev_type = type;
       prev_wc = wc;
       ++i;
-      ++offset;
-      if (wc == '\n')
-	{
-	  ++line;
-	  offset = 0;
-	  line_start = next;
-	  line_end = next;
-	}
     }
 }