summaryrefslogtreecommitdiff
path: root/pango-view/viewer-render.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2008-12-26 03:22:31 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2008-12-26 03:22:31 +0000
commit3d24172554d62f72791fcec4ccc561fb939d7db7 (patch)
tree04b02a4c79089b5319a7da6ced9cf9a1db6a0acf /pango-view/viewer-render.c
parent739ed7d54dd91f96b379d88bc7d1eaa9fe710c78 (diff)
downloadpango-3d24172554d62f72791fcec4ccc561fb939d7db7.tar.gz
Fix all warnings in pango-view/
2008-12-25 Behdad Esfahbod <behdad@gnome.org> * pango-view/viewer-main.c (main): * pango-view/viewer-pangocairo.c (pangocairo_view_create), (transform_callback), (pangocairo_view_render), (pangocairo_view_write): * pango-view/viewer-pangoft2.c (substitute_func), (pangoft2_view_create), (pangoft2_view_create_surface), (pangoft2_view_destroy_surface), (render_callback), (pangoft2_view_render), (pangoft2_view_write): * pango-view/viewer-pangox.c (render_callback): * pango-view/viewer-pangoxft.c (default_substitute), (render_callback): * pango-view/viewer-render.c (parse_enum), (parse_align), (parse_ellipsis), (parse_gravity), (parse_gravity_hint), (parse_hinting), (parse_wrap), (parse_backend), (show_version): * pango-view/viewer-x.c (x_view_init): Fix all warnings in pango-view/ svn path=/trunk/; revision=2769
Diffstat (limited to 'pango-view/viewer-render.c')
-rw-r--r--pango-view/viewer-render.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/pango-view/viewer-render.c b/pango-view/viewer-render.c
index 2aa1f6a8..4d709bd6 100644
--- a/pango-view/viewer-render.c
+++ b/pango-view/viewer-render.c
@@ -365,7 +365,7 @@ parse_enum (GType type,
int *value,
const char *name,
const char *arg,
- gpointer data,
+ gpointer data G_GNUC_UNUSED,
GError **error)
{
char *possible_values = NULL;
@@ -399,7 +399,7 @@ parse_align (const char *name,
gpointer data,
GError **error)
{
- return parse_enum (PANGO_TYPE_ALIGNMENT, &opt_align,
+ return parse_enum (PANGO_TYPE_ALIGNMENT, (int*)(void*)&opt_align,
name, arg, data, error);
}
@@ -409,7 +409,7 @@ parse_ellipsis (const char *name,
gpointer data,
GError **error)
{
- return parse_enum (PANGO_TYPE_ELLIPSIZE_MODE, &opt_ellipsize,
+ return parse_enum (PANGO_TYPE_ELLIPSIZE_MODE, (int*)(void*)&opt_ellipsize,
name, arg, data, error);
}
@@ -419,7 +419,7 @@ parse_gravity (const char *name,
gpointer data,
GError **error)
{
- return parse_enum (PANGO_TYPE_GRAVITY, &opt_gravity,
+ return parse_enum (PANGO_TYPE_GRAVITY, (int*)(void*)&opt_gravity,
name, arg, data, error);
}
@@ -429,14 +429,14 @@ parse_gravity_hint (const char *name,
gpointer data,
GError **error)
{
- return parse_enum (PANGO_TYPE_GRAVITY_HINT, &opt_gravity_hint,
+ return parse_enum (PANGO_TYPE_GRAVITY_HINT, (int*)(void*)&opt_gravity_hint,
name, arg, data, error);
}
static gboolean
-parse_hinting (const char *name,
+parse_hinting (const char *name G_GNUC_UNUSED,
const char *arg,
- gpointer data,
+ gpointer data G_GNUC_UNUSED,
GError **error)
{
gboolean ret = TRUE;
@@ -466,7 +466,7 @@ parse_wrap (const char *name,
GError **error)
{
gboolean ret;
- if ((ret = parse_enum (PANGO_TYPE_WRAP_MODE, &opt_wrap,
+ if ((ret = parse_enum (PANGO_TYPE_WRAP_MODE, (int*)(void*)&opt_wrap,
name, arg, data, error)))
{
opt_wrap_set = TRUE;
@@ -523,9 +523,9 @@ backend_description (void)
}
static gboolean
-parse_backend (const char *name,
+parse_backend (const char *name G_GNUC_UNUSED,
const char *arg,
- gpointer data,
+ gpointer data G_GNUC_UNUSED,
GError **error)
{
gboolean ret = TRUE;
@@ -555,10 +555,10 @@ parse_backend (const char *name,
static gboolean
-show_version(const char *name,
- const char *arg,
- gpointer data,
- GError **error)
+show_version(const char *name G_GNUC_UNUSED,
+ const char *arg G_GNUC_UNUSED,
+ gpointer data G_GNUC_UNUSED,
+ GError **error G_GNUC_UNUSED)
{
g_printf("%s (%s) %s\n", prog_name, PACKAGE_NAME, PACKAGE_VERSION);
g_printf("module interface version: %s\n", MODULE_VERSION);