diff liboctave/array/idx-vector.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 54527108599a
children 538b57866b90
line wrap: on
line diff
--- a/liboctave/array/idx-vector.h	Sat Jan 23 13:52:03 2016 -0800
+++ b/liboctave/array/idx-vector.h	Sat Jan 23 17:44:57 2016 -0800
@@ -103,7 +103,7 @@
     // i/o
     virtual std::ostream& print (std::ostream& os) const = 0;
 
-    virtual Array<octave_idx_type> as_array (void);
+    OCTAVE_NORETURN virtual Array<octave_idx_type> as_array (void);
 
     octave_refcount<int> count;
 
@@ -137,7 +137,7 @@
     idx_base_rep *sort_uniq_clone (bool = false)
     { count++; return this; }
 
-    idx_base_rep *sort_idx (Array<octave_idx_type>&);
+    OCTAVE_NORETURN idx_base_rep *sort_idx (Array<octave_idx_type>&);
 
     bool is_colon_equiv (octave_idx_type) const { return true; }