Fix a few GCC warnings

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5856 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Colomban Wendling 2011-06-17 22:52:43 +00:00
parent 3bd6a01525
commit 9fa8cd8bf9
7 changed files with 12 additions and 12 deletions

View File

@ -842,7 +842,7 @@ static void prepare_file_view(void)
ui_widget_modify_font_from_string(file_view, geany->interface_prefs->tagbar_font);
/* tooltips */
gtk_tree_view_set_tooltip_column(file_view, FILEVIEW_COLUMN_FILENAME);
gtk_tree_view_set_tooltip_column(GTK_TREE_VIEW(file_view), FILEVIEW_COLUMN_FILENAME);
/* selection handling */
selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(file_view));

View File

@ -892,7 +892,7 @@ load_plugins_from_path(const gchar *path)
}
static gchar *get_plugin_path()
static gchar *get_plugin_path(void)
{
#ifdef G_OS_WIN32
gchar *path;

View File

@ -136,11 +136,11 @@ static void prepare_taglist(GtkWidget *tree, GtkTreeStore *store)
g_signal_connect(tree, "key-press-event",
G_CALLBACK(sidebar_key_press_cb), NULL);
gtk_tree_view_set_show_expanders(tree, interface_prefs.show_symbol_list_expanders);
gtk_tree_view_set_show_expanders(GTK_TREE_VIEW(tree), interface_prefs.show_symbol_list_expanders);
if (! interface_prefs.show_symbol_list_expanders)
gtk_tree_view_set_level_indentation(tree, 10);
gtk_tree_view_set_level_indentation(GTK_TREE_VIEW(tree), 10);
/* Tooltips */
gtk_tree_view_set_tooltip_column(tree, SYMBOLS_COLUMN_TOOLTIP);
gtk_tree_view_set_tooltip_column(GTK_TREE_VIEW(tree), SYMBOLS_COLUMN_TOOLTIP);
/* selection handling */
selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(tree));
@ -307,7 +307,7 @@ static void prepare_openfiles(void)
ui_widget_modify_font_from_string(tv.tree_openfiles, interface_prefs.tagbar_font);
/* tooltips */
gtk_tree_view_set_tooltip_column(tv.tree_openfiles, DOCUMENTS_FILENAME);
gtk_tree_view_set_tooltip_column(GTK_TREE_VIEW(tv.tree_openfiles), DOCUMENTS_FILENAME);
/* selection handling */
selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(tv.tree_openfiles));

View File

@ -1937,9 +1937,9 @@ void ui_init_stock_items(void)
gsize i, len;
GtkStockItem items[] =
{
{ GEANY_STOCK_SAVE_ALL, _("Save All"), 0, 0, GETTEXT_PACKAGE },
{ GEANY_STOCK_CLOSE_ALL, _("Close All"), 0, 0, GETTEXT_PACKAGE },
{ GEANY_STOCK_BUILD, _("Build"), 0, 0, GETTEXT_PACKAGE }
{ GEANY_STOCK_SAVE_ALL, N_("Save All"), 0, 0, GETTEXT_PACKAGE },
{ GEANY_STOCK_CLOSE_ALL, N_("Close All"), 0, 0, GETTEXT_PACKAGE },
{ GEANY_STOCK_BUILD, N_("Build"), 0, 0, GETTEXT_PACKAGE }
};
len = G_N_ELEMENTS(items);

View File

@ -494,7 +494,7 @@ static int skipOverCplusComment (void)
/* Skips over a D style comment.
* Really we should match nested /+ comments. At least they're less common.
*/
int skipOverDComment (void)
static int skipOverDComment (void)
{
int c = fileGetc ();

View File

@ -102,7 +102,7 @@ static void function_cb(const char *line, const regexMatch *matches, unsigned in
{
char *name, *arglist;
char kind = 'f';
static char *kindName = "function";
static const char *kindName = "function";
tagEntryInfo e;
const regexMatch *match_funcname = NULL;
const regexMatch *match_arglist = NULL;

View File

@ -267,7 +267,7 @@ static void makeConstTag (tokenInfo *const token, const sqlKind kind);
* DEBUG function
*/
static void dispToken (tokenInfo *const token, char * location)
static void dispToken (tokenInfo *const token, const char * location)
{
#ifdef DEBUG
if ( isKeyword(token, KEYWORD_NONE) )