Commit 9ed6b3c7 authored by Mukund Sivaraman's avatar Mukund Sivaraman Committed by Mukund Sivaraman

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
parent 0708ffea
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment