changeset 30010:4b08242f2c23

Initialize "status" variable in glpk() to suppress --maybe-initialized compiler warning. * __glpk__.cc (glpk): Initialize "status" to -1 at start of function.
author Rik <rik@octave.org>
date Wed, 18 Aug 2021 14:40:43 -0700
parents feb1a81ced05
children 824e3eeb8aaf
files libinterp/dldfcn/__glpk__.cc
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/dldfcn/__glpk__.cc	Wed Aug 18 14:35:11 2021 -0700
+++ b/libinterp/dldfcn/__glpk__.cc	Wed Aug 18 14:40:43 2021 -0700
@@ -88,6 +88,7 @@
 {
   int typx = 0;
   int errnum = 0;
+  *status = -1;    // Initialize status to "bad" value
 
   clock_t t_start = clock ();