changeset 5510:3fadccb05d5d

[project @ 2005-10-26 17:50:55 by jwe]
author jwe
date Wed, 26 Oct 2005 17:50:56 +0000
parents b8fc8af2d04d
children e67d027ff4e3
files src/ChangeLog src/oct-procbuf.cc src/toplev.cc
diffstat 3 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Wed Oct 26 15:30:11 2005 +0000
+++ b/src/ChangeLog	Wed Oct 26 17:50:56 2005 +0000
@@ -1,5 +1,9 @@
 2005-10-26  John W. Eaton  <jwe@octave.org>
 
+	* oct-procbuf.cc (octave_procbuf::open): Cast 0 to void * to avoid
+	new g++ warning.
+	* toplev.cc (Fsystem): Likewise.
+
 	Changes for GCC 4.1, tip from Arno J. Klaassen
 	<arno@heho.snv.jussieu.fr>:
 
--- a/src/oct-procbuf.cc	Wed Oct 26 15:30:11 2005 +0000
+++ b/src/oct-procbuf.cc	Wed Oct 26 17:50:56 2005 +0000
@@ -136,7 +136,7 @@
 	  octave_procbuf_list = octave_procbuf_list->next;
 	}
 
-      execl ("/bin/sh", "sh", "-c", command, 0);
+      execl ("/bin/sh", "sh", "-c", command, static_cast<void *> (0));
 
       exit (127);
     }
--- a/src/toplev.cc	Wed Oct 26 15:30:11 2005 +0000
+++ b/src/toplev.cc	Wed Oct 26 17:50:56 2005 +0000
@@ -480,7 +480,8 @@
 		  // XXX FIXME XXX -- should probably replace this
 		  // call with something portable.
 
-		  execl ("/bin/sh", "sh", "-c", cmd_str.c_str (), 0);
+		  execl ("/bin/sh", "sh", "-c", cmd_str.c_str (),
+			 static_cast<void *> (0));
 
 		  panic_impossible ();
 		}