From 7d59434cbd7ea6bdd42a6f3223a47cbb06ba4069 Mon Sep 17 00:00:00 2001 From: Hib Eris Date: Mon, 21 Dec 2009 12:49:11 +0100 Subject: [PATCH] [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 --- backend/comics/comics-document.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/comics/comics-document.c b/backend/comics/comics-document.c index 89284228..9f657c24 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; -- 2.43.5