From 7d59434cbd7ea6bdd42a6f3223a47cbb06ba4069 Mon Sep 17 00:00:00 2001 From: Hib Eris Date: Mon, 21 Dec 2009 11:49:11 +0000 Subject: [comics] Do not initalize GPid's with -1 On Windows, a GPid is a pointer, not an integer. Initializing it with "-1" causes warnings on Windows and is unnecessay on Unix, so it is better to not do that. See bgo#605146 --- (limited to 'backend') diff --git a/backend/comics/comics-document.c b/backend/comics/comics-document.c index 8928422..9f657c2 100644 --- a/backend/comics/comics-document.c +++ b/backend/comics/comics-document.c @@ -504,7 +504,7 @@ comics_document_get_page_size (EvDocument *document, guchar buf[1024]; gboolean success, got_size = FALSE; gint outpipe = -1; - GPid child_pid = -1; + GPid child_pid; gssize bytes; GdkPixbuf *pixbuf; gchar *filename; @@ -579,7 +579,7 @@ comics_document_render_pixbuf (EvDocument *document, guchar buf[4096]; gboolean success; gint outpipe = -1; - GPid child_pid = -1; + GPid child_pid; gssize bytes; gint width, height; gchar *filename; -- cgit v0.9.1