# HG changeset patch # User Rik # Date 1425081222 28800 # Node ID 5261186f1b006f2311a989de2455642a644a223f # Parent d575cd1e0da76b5ecb6b95b88c6d465510390e79 __pchip_deriv__.cc: Stop variable might be clobbered by 'longjmp' warning. * __pchip_deriv__.cc: Declare loop index i to be volatile. diff -r d575cd1e0da7 -r 5261186f1b00 libinterp/corefcn/__pchip_deriv__.cc --- 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,