comparison liboctave/util/lo-array-gripes.h @ 21007:9c41a7ee5e14

Mark certain gripe functions with GCC_ATTR_NORETURN. * gripes.h, lo-array-gripes.h: Marke gripe functions which call error, not warning, with GCC_ATTR_NORETURN.
author Rik <rik@octave.org>
date Tue, 29 Dec 2015 09:39:41 -0800
parents f7084eae3318
children 93748bcaec17
comparison
equal deleted inserted replaced
21006:0a09c3cae800 21007:9c41a7ee5e14
108 extern OCTAVE_API const char *warning_id_nearly_singular_matrix; 108 extern OCTAVE_API const char *warning_id_nearly_singular_matrix;
109 109
110 extern OCTAVE_API const char *warning_id_singular_matrix; 110 extern OCTAVE_API const char *warning_id_singular_matrix;
111 111
112 extern void OCTAVE_API 112 extern void OCTAVE_API
113 gripe_nan_to_logical_conversion (void); 113 gripe_nan_to_logical_conversion (void) GCC_ATTR_NORETURN;
114 114
115 extern void OCTAVE_API 115 extern void OCTAVE_API
116 gripe_nan_to_character_conversion (void); 116 gripe_nan_to_character_conversion (void) GCC_ATTR_NORETURN;
117 117
118 extern void OCTAVE_API 118 extern void OCTAVE_API
119 gripe_nonconformant (const char *op, 119 gripe_nonconformant (const char *op,
120 octave_idx_type op1_len, octave_idx_type op2_len); 120 octave_idx_type op1_len,
121 octave_idx_type op2_len) GCC_ATTR_NORETURN;
121 122
122 extern void OCTAVE_API 123 extern void OCTAVE_API
123 gripe_nonconformant (const char *op, 124 gripe_nonconformant (const char *op,
124 octave_idx_type op1_nr, octave_idx_type op1_nc, 125 octave_idx_type op1_nr, octave_idx_type op1_nc,
125 octave_idx_type op2_nr, octave_idx_type op2_nc); 126 octave_idx_type op2_nr, octave_idx_type op2_nc)
127 GCC_ATTR_NORETURN;
126 128
127 129
128 extern void OCTAVE_API 130 extern void OCTAVE_API
129 gripe_nonconformant (const char *op, const dim_vector& op1_dims, 131 gripe_nonconformant (const char *op, const dim_vector& op1_dims,
130 const dim_vector& op2_dims); 132 const dim_vector& op2_dims) GCC_ATTR_NORETURN;
131 133
132 extern void OCTAVE_API 134 extern void OCTAVE_API
133 gripe_index_out_of_range (int nd, int dim, 135 gripe_index_out_of_range (int nd, int dim,
134 octave_idx_type iext, octave_idx_type ext, 136 octave_idx_type iext, octave_idx_type ext,
135 const dim_vector& d); 137 const dim_vector& d) GCC_ATTR_NORETURN;
136 138
137 extern void OCTAVE_API 139 extern void OCTAVE_API
138 gripe_index_out_of_range (int nd, int dim, 140 gripe_index_out_of_range (int nd, int dim,
139 octave_idx_type iext, octave_idx_type ext); 141 octave_idx_type iext, octave_idx_type ext)
142 GCC_ATTR_NORETURN;
140 143
141 extern void OCTAVE_API 144 extern void OCTAVE_API
142 gripe_del_index_out_of_range (bool is1d, octave_idx_type iext, 145 gripe_del_index_out_of_range (bool is1d, octave_idx_type iext,
143 octave_idx_type ext); 146 octave_idx_type ext) GCC_ATTR_NORETURN;
144 147
145 extern void OCTAVE_API 148 extern void OCTAVE_API
146 gripe_invalid_index (double, octave_idx_type nd = 0, 149 gripe_invalid_index (double, octave_idx_type nd = 0,
147 octave_idx_type dim = 0, 150 octave_idx_type dim = 0,
148 const std::string& var = std::string ()); 151 const std::string& var = "") GCC_ATTR_NORETURN;
149 152
150 extern void OCTAVE_API 153 extern void OCTAVE_API
151 gripe_invalid_index (octave_idx_type n, octave_idx_type nd = 0, 154 gripe_invalid_index (octave_idx_type n, octave_idx_type nd = 0,
152 octave_idx_type dim = 0, 155 octave_idx_type dim = 0,
153 const std::string& var = std::string ()); 156 const std::string& var = "") GCC_ATTR_NORETURN;
154 157
155 extern void OCTAVE_API 158 extern void OCTAVE_API
156 gripe_invalid_index (const std::string& idx, octave_idx_type nd = 0, 159 gripe_invalid_index (const std::string& idx, octave_idx_type nd = 0,
157 octave_idx_type dim = 0, 160 octave_idx_type dim = 0,
158 const std::string& var = std::string ()); 161 const std::string& var = "") GCC_ATTR_NORETURN;
159 162
160 extern void OCTAVE_API 163 extern void OCTAVE_API
161 gripe_invalid_resize (void); 164 gripe_invalid_resize (void) GCC_ATTR_NORETURN;
162 165
163 extern void OCTAVE_API 166 extern void OCTAVE_API
164 gripe_singular_matrix (double rcond = 0.0); 167 gripe_singular_matrix (double rcond = 0.0);
165 168
166 #endif 169 #endif