changeset 19779:166051951878

avoid warning from GCC about variables possibly clobbered by longjmp * __glpk__.cc (F__glpk__): Declare errnum volatile to avoid GCC warning.
author John W. Eaton <jwe@octave.org>
date Fri, 20 Feb 2015 01:54:11 -0500
parents bf737d927707
children fc789d4e362e
files libinterp/dldfcn/__glpk__.cc
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/dldfcn/__glpk__.cc	Fri Feb 20 04:25:35 2015 -0500
+++ b/libinterp/dldfcn/__glpk__.cc	Fri Feb 20 01:54:11 2015 -0500
@@ -716,7 +716,8 @@
   ColumnVector lambda (mrowsA, octave_NA);
   ColumnVector redcosts (mrowsc, octave_NA);
   double time;
-  int status, errnum = 0;
+  int status;
+  volatile int errnum = 0;
 
   int jmpret = setjmp (mark);