Package: gtkdialog
Version: 0.58.11-2
Severity: serious
Tags: patch

gtkdialog fails to build:

> if i486-linux-gnu-gcc -DPACKAGE_NAME=\"gtkdialog\" 
> -DPACKAGE_TARNAME=\"gtkdialog\" -DPACKAGE_VERSION=\"0.58.11\" 
> -DPACKAGE_STRING=\"gtkdialog\ 0.58.11\" -DPACKAGE_BUGREPORT=\"[EMAIL 
> PROTECTED]" -DPACKAGE=\"gtkdialog\" -DVERSION=\"0.58.11\" -DYYTEXT_POINTER=1 
> -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 
> -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 
> -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LOCALE_H=1 -DHAVE_SETLOCALE=1  -I. 
> -I.    -DXTHREADS -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include 
> -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 
> -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  
>   -Wall -g -O2 -MT variables.o -MD -MP -MF ".deps/variables.Tpo" -c -o 
> variables.o variables.c; \
> then mv -f ".deps/variables.Tpo" ".deps/variables.Po"; else rm -f 
> ".deps/variables.Tpo"; exit 1; fi
> variables.c: In function 'variables_new':
> variables.c:48: warning: implicit declaration of function '_tree_insert'
> variables.c: In function 'variables_save':
> variables.c:214: warning: implicit declaration of function 'widget_edit_save'
> variables.c: In function '_tree_insert':
> variables.c:321: warning: too few arguments for format
> variables.c:341: warning: suggest explicit braces to avoid ambiguous 'else'
> variables.c:349: warning: suggest explicit braces to avoid ambiguous 'else'
> variables.c: In function '_tree_find':
> variables.c:376: warning: suggest explicit braces to avoid ambiguous 'else'
> variables.c:382: warning: suggest explicit braces to avoid ambiguous 'else'
> variables.c: In function '_variables_initialize':
> variables.c:439: warning: implicit declaration of function 'yywarning'
> variables.c: At top level:
> variables.c:449: error: static declaration of '_variables_export' follows 
> non-static declaration
> variables.c:10: error: previous declaration of '_variables_export' was here
> variables.c: In function '_variables_export':
> variables.c:502: warning: format '%s' expects type 'char *', but argument 3 
> has type 'gpointer'
> variables.c: In function 'print_variables':
> variables.c:567: warning: format '%s' expects type 'char *', but argument 2 
> has type 'gpointer'
> variables.c: In function 'append_fromto_variable':
> variables.c:617: warning: passing argument 1 of 'gtk_list_prepend_items' from 
> incompatible pointer type
> variables.c:625: warning: passing argument 1 of 'gtk_entry_set_text' from 
> incompatible pointer type
> variables.c: In function 'remove_selected_variable':
> variables.c:683: warning: unused variable 'empty'

The attached patch fixes this problem by making the first declaration
static.

-- 
Matt
only in patch2:
unchanged:
--- gtkdialog-0.58.11.orig/src/variables.c
+++ gtkdialog-0.58.11/src/variables.c
@@ -6,7 +6,7 @@
 ** Local functions...
 */
 variable *_tree_find(const char *name, variable * actual);
-void _variables_export(variable * actual);
+static void _variables_export(variable * actual);
 
 extern GtkWidget *window;      /* The actual window */
 variable *root = NULL;

Attachment: signature.asc
Description: Digital signature

Reply via email to