From b719e8701c9f21840d73a481c2ee61573f73a424 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Thu, 29 Sep 2011 18:08:37 +0200 Subject: [PATCH] get rid of warnings --- callbacks.c | 3 ++- utils.c | 2 +- zathura.c | 6 ++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/callbacks.c b/callbacks.c index a0d7dec..32c075a 100644 --- a/callbacks.c +++ b/callbacks.c @@ -9,6 +9,7 @@ #include "render.h" #include "document.h" #include "utils.h" +#include "shortcuts.h" gboolean cb_destroy(GtkWidget* UNUSED(widget), gpointer UNUSED(data)) @@ -92,7 +93,7 @@ cb_pages_per_row_value_changed(girara_session_t* UNUSED(session), girara_setting void cb_index_row_activated(GtkTreeModel* tree_view, GtkTreePath* path, - GtkTreeViewColumn* column, zathura_t* zathura) + GtkTreeViewColumn* UNUSED(column), zathura_t* zathura) { if (tree_view == NULL || zathura == NULL || zathura->ui.session == NULL) { return; diff --git a/utils.c b/utils.c index 790952e..31d944b 100644 --- a/utils.c +++ b/utils.c @@ -68,7 +68,7 @@ file_valid_extension(zathura_t* zathura, const char* path) } GIRARA_LIST_FOREACH_END(zathura->plugins.type_plugin_mapping, zathura_type_plugin_mapping_t*, iter, mapping) - g_free(content_type); + g_free((void*)content_type); return result; } diff --git a/zathura.c b/zathura.c index 44b331d..b1de774 100644 --- a/zathura.c +++ b/zathura.c @@ -63,11 +63,13 @@ zathura_init(int argc, char* argv[]) /* plugins */ zathura->plugins.plugins = girara_list_new(); - girara_list_set_free_function(zathura->plugins.plugins, zathura_document_plugin_free); + girara_list_set_free_function(zathura->plugins.plugins, + (girara_free_function_t)zathura_document_plugin_free); zathura->plugins.path = girara_list_new(); girara_list_set_free_function(zathura->plugins.path, g_free); zathura->plugins.type_plugin_mapping = girara_list_new(); - girara_list_set_free_function(zathura->plugins.type_plugin_mapping, zathura_type_plugin_mapping_free); + girara_list_set_free_function(zathura->plugins.type_plugin_mapping, + (girara_free_function_t)zathura_type_plugin_mapping_free); if (config_dir) { zathura->config.config_dir = g_strdup(config_dir);