[gnumeric] Win32: avoid run-time warning.
- From: Morten Welinder <mortenw src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnumeric] Win32: avoid run-time warning.
 
- Date: Mon, 24 May 2010 23:20:08 +0000 (UTC)
 
commit d5c6777b2fd6c98b65dcc27173b176b43bcc64cf
Author: Morten Welinder <terra gnome org>
Date:   Mon May 24 19:19:30 2010 -0400
    Win32: avoid run-time warning.
 src/tools/ChangeLog    |    6 ++++++
 src/tools/gnm-solver.c |    6 ++++++
 2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/tools/ChangeLog b/src/tools/ChangeLog
index 4b86018..358dbe2 100644
--- a/src/tools/ChangeLog
+++ b/src/tools/ChangeLog
@@ -7,6 +7,12 @@
 	* analysis-tools.c (analysis_tools_write_a_label): make public
 	(analysis_tools_remove_label): ditto
 
+2010-05-24  Morten Welinder  <terra gnome org>
+
+	* gnm-solver.c (gnm_sub_solver_spawn): On windows, ignore the
+	child_setup since g_spawn_* will ignore it other than issuing a
+	warning.
+
 2010-05-22  Morten Welinder  <terra gnome org>
 
 	* gnm-solver.c (gnm_solver_get_current_values): New function.
diff --git a/src/tools/gnm-solver.c b/src/tools/gnm-solver.c
index a228096..43a9dd4 100644
--- a/src/tools/gnm-solver.c
+++ b/src/tools/gnm-solver.c
@@ -1358,6 +1358,12 @@ gnm_sub_solver_spawn (GnmSubSolver *subsol,
 		g_string_free (msg, TRUE);
 	}
 
+#ifdef G_OS_WIN32
+	/* Hope for the best... */
+	child_setup = NULL;
+	setup_data = NULL;
+#endif
+
 	ok = g_spawn_async_with_pipes
 		(g_get_home_dir (),  /* PWD */
 		 argv,
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]