Mercurial > jwe > octave
diff liboctave/array/Sparse.h @ 21137:623fc7d08cc6
maint: Clean up compile warnings in liboctave from cset 7cac4e7458f2.
* Sparse.h (range_error): Mark function with OCTAVE_NORETURN attribute.
* Sparse.h (read_sparse_matrix): "return is" at end of fcn.
* dSparse.cc (tinverse): Delete unused inverse_singular label.
* idx-vector.h (as_array, sort_idx): Mark function with OCTAVE_NORETURN.
* Quad.h (do_integrate): Mark unreachable do_integrate combinations
with OCTAVE_NORETURN.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 23 Jan 2016 17:44:57 -0800 |
parents | 7cac4e7458f2 |
children | 538b57866b90 |
line wrap: on
line diff
--- a/liboctave/array/Sparse.h Sat Jan 23 13:52:03 2016 -0800 +++ b/liboctave/array/Sparse.h Sat Jan 23 17:44:57 2016 -0800 @@ -294,14 +294,18 @@ octave_idx_type compute_index (const Array<octave_idx_type>& ra_idx) const; - T range_error (const char *fcn, octave_idx_type n) const; - T& range_error (const char *fcn, octave_idx_type n); + OCTAVE_NORETURN T range_error (const char *fcn, octave_idx_type n) const; + OCTAVE_NORETURN T& range_error (const char *fcn, octave_idx_type n); - T range_error (const char *fcn, octave_idx_type i, octave_idx_type j) const; - T& range_error (const char *fcn, octave_idx_type i, octave_idx_type j); + OCTAVE_NORETURN T range_error (const char *fcn, + octave_idx_type i, octave_idx_type j) const; + OCTAVE_NORETURN T& range_error (const char *fcn, + octave_idx_type i, octave_idx_type j); - T range_error (const char *fcn, const Array<octave_idx_type>& ra_idx) const; - T& range_error (const char *fcn, const Array<octave_idx_type>& ra_idx); + OCTAVE_NORETURN T range_error (const char *fcn, + const Array<octave_idx_type>& ra_idx) const; + OCTAVE_NORETURN T& range_error (const char *fcn, + const Array<octave_idx_type>& ra_idx); // No checking, even for multiple references, ever. @@ -775,6 +779,8 @@ for (octave_idx_type j = jold; j < nc; j++) a.cidx (j+1) = ii; } + + return is; } #endif