Mercurial > octave
diff libinterp/corefcn/sighandlers.cc @ 20801:a542a9bf177e
eliminate return statements after calls to print_usage
* graphics.cc, hess.cc, input.cc, kron.cc, load-save.cc, lsode.cc,
luinc.cc, matrix_type.cc, md5sum.cc, nproc.cc, pager.cc, pr-output.cc,
psi.cc, quadcc.cc, rand.cc, regexp.cc, sighandlers.cc, sqrtm.cc,
strfind.cc, sub2ind.cc, sylvester.cc:
Eliminate return statements after calls to print_usage.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 03 Dec 2015 19:22:54 -0500 |
parents | f7084eae3318 |
children | 1142cf6abc0d |
line wrap: on
line diff
--- a/libinterp/corefcn/sighandlers.cc Thu Dec 03 18:33:00 2015 -0500 +++ b/libinterp/corefcn/sighandlers.cc Thu Dec 03 19:22:54 2015 -0500 @@ -1052,18 +1052,12 @@ Return a structure containing Unix signal names and their defined values.\n\ @end deftypefn") { - octave_value retval; - - if (args.length () == 0) - { - static octave_scalar_map m = make_sig_struct (); - - retval = m; - } - else + if (args.length () != 0) print_usage (); - return retval; + static octave_scalar_map m = make_sig_struct (); + + return octave_value (m); } /*