mirror of https://github.com/GNOME/gimp.git
Fixes for some Sparse reported issues in app, libgimp*/
2008-03-28 Mukund Sivaraman <muks@mukund.org> Fixes for some Sparse reported issues in app, libgimp*/ * app/gui/gui-vtable.c: Included <gdk/gdkx.h> * libgimp/gimpprocview.c: author, date, copyright are pointers. * libgimpwidgets/gimpcolorprofilestore.c: Last argument of g_scanner_scope_add_symbol() is a pointer. svn path=/trunk/; revision=25293
This commit is contained in:
parent
0708ffea76
commit
9ed6b3c75f
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
|||
2008-03-28 Mukund Sivaraman <muks@mukund.org>
|
||||
|
||||
Fixes for some Sparse reported issues in app, libgimp*/
|
||||
|
||||
* app/gui/gui-vtable.c: Included <gdk/gdkx.h>
|
||||
|
||||
* 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 <muks@mukund.org>
|
||||
|
||||
Fixes for some Sparse reported issues in app/
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include <string.h>
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <gdk/gdkx.h>
|
||||
|
||||
#include "libgimpwidgets/gimpwidgets.h"
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue