[pango] Fix a few warnings
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] Fix a few warnings
- Date: Wed, 6 May 2015 00:18:08 +0000 (UTC)
commit d0ae2a4b74903331e8b79968faf2af95e012ef65
Author: Behdad Esfahbod <behdad behdad org>
Date: Tue May 5 17:17:04 2015 -0700
Fix a few warnings
pango/pango-gravity.c | 1 -
pango/pango-layout.c | 2 +-
pango/pango-utils.c | 2 +-
pango/pangofc-shape.c | 2 --
4 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/pango/pango-gravity.c b/pango/pango-gravity.c
index ebaf17e..8565db1 100644
--- a/pango/pango-gravity.c
+++ b/pango/pango-gravity.c
@@ -186,7 +186,6 @@ typedef struct {
#define S PANGO_GRAVITY_SOUTH
#define E PANGO_GRAVITY_EAST
-#define N PANGO_GRAVITY_NORTH
#define W PANGO_GRAVITY_WEST
const PangoScriptProperties script_properties[] =
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 1c844ab..c982041 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -1312,7 +1312,7 @@ pango_layout_get_unknown_glyphs_count (PangoLayout *layout)
static void
check_context_changed (PangoLayout *layout)
{
- int old_serial = layout->context_serial;
+ guint old_serial = layout->context_serial;
layout->context_serial = pango_context_get_serial (layout->context);
diff --git a/pango/pango-utils.c b/pango/pango-utils.c
index 61c76ad..eb01fa6 100644
--- a/pango/pango-utils.c
+++ b/pango/pango-utils.c
@@ -984,7 +984,7 @@ _pango_shape_shape (const char *text,
PangoRectangle *shape_logical,
PangoGlyphString *glyphs)
{
- int i;
+ unsigned int i;
const char *p;
pango_glyph_string_set_size (glyphs, n_chars);
diff --git a/pango/pangofc-shape.c b/pango/pangofc-shape.c
index 3a2cfa4..f0ea784 100644
--- a/pango/pangofc-shape.c
+++ b/pango/pangofc-shape.c
@@ -31,8 +31,6 @@
#include <hb-ft.h>
#include <hb-glib.h>
-#define PANGO_UNITS_26_6(d) ((d) << 4)
-
/* cache a single hb_buffer_t */
static hb_buffer_t *cached_buffer = NULL; /* MT-safe */
G_LOCK_DEFINE_STATIC (cached_buffer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]