Mercurial > octave
comparison 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 |
comparison
equal
deleted
inserted
replaced
21077:40f931a63a91 | 21078:49852ff04747 |
---|---|
889 @qcode{\"stack\"} that gives information on the assumed location of the\n\ | 889 @qcode{\"stack\"} that gives information on the assumed location of the\n\ |
890 error. Typically @var{err} is returned from @code{lasterror}.\n\ | 890 error. Typically @var{err} is returned from @code{lasterror}.\n\ |
891 @seealso{lasterror, lasterr, error}\n\ | 891 @seealso{lasterror, lasterr, error}\n\ |
892 @end deftypefn") | 892 @end deftypefn") |
893 { | 893 { |
894 octave_value retval; | |
895 | |
896 if (args.length () != 1) | 894 if (args.length () != 1) |
897 print_usage (); | 895 print_usage (); |
898 | 896 |
899 const octave_scalar_map err = args(0).scalar_map_value (); | 897 const octave_scalar_map err = args(0).scalar_map_value (); |
900 | 898 |
1012 } | 1010 } |
1013 } | 1011 } |
1014 } | 1012 } |
1015 } | 1013 } |
1016 | 1014 |
1017 return retval; | 1015 return ovl (); |
1018 } | 1016 } |
1019 | 1017 |
1020 // Determine whether the first argument to error or warning function | 1018 // Determine whether the first argument to error or warning function |
1021 // should be handled as the message identifier or as the format string. | 1019 // should be handled as the message identifier or as the format string. |
1022 | 1020 |
2052 \n\ | 2050 \n\ |
2053 @noindent\n\ | 2051 @noindent\n\ |
2054 to check for the proper number of arguments.\n\ | 2052 to check for the proper number of arguments.\n\ |
2055 @end deftypefn") | 2053 @end deftypefn") |
2056 { | 2054 { |
2057 octave_value_list retval; | |
2058 handle_message (usage_with_id, "", "unknown", args, true); | 2055 handle_message (usage_with_id, "", "unknown", args, true); |
2059 return retval; | 2056 return ovl (); |
2060 } | 2057 } |
2061 | 2058 |
2062 DEFUN (beep_on_error, args, nargout, | 2059 DEFUN (beep_on_error, args, nargout, |
2063 "-*- texinfo -*-\n\ | 2060 "-*- texinfo -*-\n\ |
2064 @deftypefn {} {@var{val} =} beep_on_error ()\n\ | 2061 @deftypefn {} {@var{val} =} beep_on_error ()\n\ |