Mercurial > octave
diff libinterp/dldfcn/ccolamd.cc @ 20825:66cd994d1b79
eliminate return statements after calls to error
* __delaunayn__.cc, __eigs__.cc, __fltk_uigetfile__.cc, __glpk__.cc,
__init_fltk__.cc, __magick_read__.cc, __osmesa_print__.cc,
__voronoi__.cc, audiodevinfo.cc, audioread.cc, ccolamd.cc, colamd.cc,
convhulln.cc: Eliminate return statements after calls to error.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 08 Dec 2015 14:20:05 -0500 |
parents | a9574e3c6e9e |
children | 1142cf6abc0d |
line wrap: on
line diff
--- a/libinterp/dldfcn/ccolamd.cc Tue Dec 08 12:34:23 2015 -0500 +++ b/libinterp/dldfcn/ccolamd.cc Tue Dec 08 14:20:05 2015 -0500 @@ -287,8 +287,8 @@ knobs, stats, cmember)) { CCOLAMD_NAME (_report) (stats) ; + error ("ccolamd: internal error!"); - return retval; } } else @@ -297,8 +297,8 @@ if (! CCOLAMD_NAME () (n_row, n_col, Alen, A, p, knobs, stats, 0)) { CCOLAMD_NAME (_report) (stats) ; + error ("ccolamd: internal error!"); - return retval; } } @@ -499,10 +499,7 @@ } if (n_row != n_col) - { - error ("csymamd: matrix S must be square"); - return retval; - } + error ("csymamd: matrix S must be square"); // Allocate workspace for symamd OCTAVE_LOCAL_BUFFER (octave_idx_type, perm, n_col+1); @@ -523,8 +520,8 @@ &calloc, &free, cmember, -1)) { CSYMAMD_NAME (_report) (stats) ; + error ("csymamd: internal error!") ; - return retval; } } else @@ -533,8 +530,8 @@ &calloc, &free, 0, -1)) { CSYMAMD_NAME (_report) (stats) ; + error ("csymamd: internal error!") ; - return retval; } }