Mercurial > octave-nkf
changeset 19908:5261186f1b00
__pchip_deriv__.cc: Stop variable might be clobbered by 'longjmp' warning.
* __pchip_deriv__.cc: Declare loop index i to be volatile.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 27 Feb 2015 15:53:42 -0800 |
parents | d575cd1e0da7 |
children | 6b7aee95c54c |
files | libinterp/corefcn/__pchip_deriv__.cc |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/__pchip_deriv__.cc Fri Feb 27 15:51:12 2015 -0800 +++ b/libinterp/corefcn/__pchip_deriv__.cc Fri Feb 27 15:53:42 2015 -0800 @@ -92,7 +92,7 @@ volatile const octave_idx_type inc = rows ? 1 : nyr; volatile octave_idx_type k = 0; - for (octave_idx_type i = (rows ? nyr : nyc); i > 0; i--) + for (volatile octave_idx_type i = (rows ? nyr : nyc); i > 0; i--) { F77_XFCN (pchim, PCHIM, (nx, xvec.data (), ymat.data () + k * inc, @@ -139,7 +139,7 @@ volatile const octave_idx_type inc = rows ? 1 : nyr; volatile octave_idx_type k = 0; - for (octave_idx_type i = (rows ? nyr : nyc); i > 0; i--) + for (volatile octave_idx_type i = (rows ? nyr : nyc); i > 0; i--) { F77_XFCN (dpchim, DPCHIM, (nx, xvec.data (), ymat.data () + k * inc,