changeset 23797:755b4c622972

Fix "variable may be used uninitialized" warning reported by gcc. * pr-output.cc (octave_print_internal): Initialize fw to 0.
author Rik <rik@octave.org>
date Wed, 26 Jul 2017 21:09:19 -0700
parents 4f12819a634f
children 771310737137
files libinterp/corefcn/pr-output.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/pr-output.cc	Wed Jul 26 16:26:31 2017 -0700
+++ b/libinterp/corefcn/pr-output.cc	Wed Jul 26 21:09:19 2017 -0700
@@ -1743,7 +1743,7 @@
     }
   else
     {
-      int fw;
+      int fw = 0;
       double scale = 1.0;
       set_format (m, fw, scale);
       int column_width = fw + 2;