diff --git a/ChangeLog b/ChangeLog index 33e4ce59b6..ca966709a0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2008-03-28 Mukund Sivaraman + + Fixes for some Sparse reported issues in app, libgimp*/ + + * app/gui/gui-vtable.c: Included + + * libgimp/gimpprocview.c: author, date, copyright are pointers. + + * libgimpwidgets/gimpcolorprofilestore.c: Last argument of + g_scanner_scope_add_symbol() is a pointer. + 2008-03-28 Mukund Sivaraman Fixes for some Sparse reported issues in app/ diff --git a/app/gui/gui-vtable.c b/app/gui/gui-vtable.c index 0a307cc10f..afa4ee99e1 100644 --- a/app/gui/gui-vtable.c +++ b/app/gui/gui-vtable.c @@ -21,6 +21,7 @@ #include #include +#include #include "libgimpwidgets/gimpwidgets.h" diff --git a/libgimp/gimpprocview.c b/libgimp/gimpprocview.c index 41af01a82a..a7aabb47d1 100644 --- a/libgimp/gimpprocview.c +++ b/libgimp/gimpprocview.c @@ -190,8 +190,10 @@ gimp_proc_view_new (const gchar *name, if (! author && ! date && ! copyright) return main_vbox; - table = gtk_table_new ((author != 0) + (date != 0) + (copyright != 0), 2, - FALSE); + table = gtk_table_new (((author != NULL) + + (date != NULL) + + (copyright != NULL)), + 2, FALSE); gtk_table_set_col_spacings (GTK_TABLE (table), 6); gtk_table_set_row_spacings (GTK_TABLE (table), 4); gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0); diff --git a/libgimpwidgets/gimpcolorprofilestore.c b/libgimpwidgets/gimpcolorprofilestore.c index 38f6aa43a6..ab73b2914d 100644 --- a/libgimpwidgets/gimpcolorprofilestore.c +++ b/libgimpwidgets/gimpcolorprofilestore.c @@ -620,7 +620,7 @@ gimp_color_profile_store_load (GimpColorProfileStore *store, if (! scanner) return FALSE; - g_scanner_scope_add_symbol (scanner, 0, "color-profile", 0); + g_scanner_scope_add_symbol (scanner, 0, "color-profile", NULL); token = G_TOKEN_LEFT_PAREN;