help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:


From: Paul Kienzle
Subject: Re:
Date: Tue, 08 Apr 2003 18:38:23 -0400
User-agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.3a) Gecko/20021212

branganj wrote:

sorry, I think I am returning the octave-value-list right, but I am still getting errors like this :

2mpi_mm.cc: In function `class octave_value_list F2mpi_mm(const class octave_value_list &, int)': 2mpi_mm.cc:147: warning: control reaches end of non-void function `F2mpi_mm(const octave_value_list &, int)'


control reaches the end of non-void function means that the
last statement in your function is not a return statement.  The
only situation in which this is acceptable is if your function
never returns  from the end (e.g., because it calls exit, or
because it returns from the middle of an otherwise infinite
loop).    Is MPI_Finalize() one of these functions?

You can keep the compiler happy by putting a return
statement in anyway even though the code is not
reachable.

DEFUN_DLD (2mpi_mm, , ,"Parallel multiplication of two matrices using mpi")
{
 ...
 MPI_Finalize();

return octave_value_list();

} /* of main */

DEFUN_DLD (mpi_mm,args , ,"Parallel multiplication of two matrices using mpi")
{
 ...
 MPI_Finalize();

return octave_value_list();

} /* of main */





-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]