Mercurial > octave
diff libinterp/corefcn/error.cc @ 21078:49852ff04747
maint: Remove unnecessary declarations of retval.
* __pchip_deriv__.cc, data.cc, dirfns.cc, error.cc, file-io.cc, input.cc,
load-path.cc, octave-link.cc, strfns.cc, sysdep.cc, time.cc, toplev.cc,
urlwrite.cc, ov-cell.cc, ov.cc: Remove unnecessary declarations of retval.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 15 Jan 2016 13:40:34 -0800 |
parents | 3e7cfee5f786 |
children | f5b17eb2508b |
line wrap: on
line diff
--- a/libinterp/corefcn/error.cc Fri Jan 15 10:52:48 2016 -0800 +++ b/libinterp/corefcn/error.cc Fri Jan 15 13:40:34 2016 -0800 @@ -891,8 +891,6 @@ @seealso{lasterror, lasterr, error}\n\ @end deftypefn") { - octave_value retval; - if (args.length () != 1) print_usage (); @@ -1014,7 +1012,7 @@ } } - return retval; + return ovl (); } // Determine whether the first argument to error or warning function @@ -2054,9 +2052,8 @@ to check for the proper number of arguments.\n\ @end deftypefn") { - octave_value_list retval; handle_message (usage_with_id, "", "unknown", args, true); - return retval; + return ovl (); } DEFUN (beep_on_error, args, nargout,