|
From: | Søren Hauberg |
Subject: | Re: basic DLD help? |
Date: | Wed, 13 Jul 2005 09:09:37 +0200 |
User-agent: | Mozilla Thunderbird 1.0.2 (X11/20050404) |
Stefan van der Walt wrote:
Nice! I always thought that -Wall was default in mkoctfile. Thanks for telling me.On Tue, Jul 12, 2005 at 03:06:32PM +0200, Søren Hauberg wrote:return octave_value();The last one is easy to forget.It would be nice if the compiler was able to catch this, but apperently it can't.It can, and it does! address@hidden tmp]$ mkoctfile -Wall test.cc test.cc: In function `octave_value_list Ftest(const octave_value_list&, int)': test.cc:12: warning: control reaches end of non-void function
/Søren
Regards Stéfan ------------------------------------------------------------- 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 -------------------------------------------------------------
------------------------------------------------------------- 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 -------------------------------------------------------------
[Prev in Thread] | Current Thread | [Next in Thread] |