changeset 30649:6a3aaa4e5e56

Get rid of this warning: gntdebug.c: In function ¡Æhandle_fprintf_stderr¡Ç: gntdebug.c:80: warning: ignoring return value of ¡Æpipe¡Ç, declared with attribute warn_unused_result I'm guessing this is the right fix. Really I just needed to commit something so I can test commit email scripts
author Stu Tomlinson <stu@nosnilmot.com>
date Wed, 30 Jun 2010 01:12:54 +0000
parents 53469b47d3f3
children 1c20a2115ad4
files finch/gntdebug.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/finch/gntdebug.c	Tue Jun 29 19:22:31 2010 +0000
+++ b/finch/gntdebug.c	Wed Jun 30 01:12:54 2010 +0000
@@ -77,7 +77,10 @@
 		}
 		return;
 	}
-	pipe(pipes);
+	if (pipe(pipes)) {
+		readhandle = -1;
+		return;
+	};
 	dup2(pipes[1], STDERR_FILENO);
 
 	stderrch = g_io_channel_unix_new(pipes[0]);