diff libinterp/octave-value/ov-float.cc @ 20084:2f2220bfd379

ov-base-int.cc, ov-float.cc: Fix build without HDF5 * ov-base-int.cc Without this, gcc 4.7 shows: "error: 'gripe_save' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] note: declarations in dependent base 'octave_base_value' are not found by unqualified lookup. Use 'this->gripe_save' instead" * ov-float.cc: Move retval outside ifdef HAVE_HDF5 block
author Andreas Weber <andy.weber.aw@gmail.com>
date Sat, 28 Feb 2015 10:34:25 +0100
parents 09ed6f7538dd
children c6224b4e7774
line wrap: on
line diff
--- a/libinterp/octave-value/ov-float.cc
+++ b/libinterp/octave-value/ov-float.cc
@@ -188,12 +188,13 @@
 octave_float_scalar::save_hdf5 (octave_hdf5_id loc_id, const char *name,
                                 bool /* save_as_floats */)
 {
+  bool retval = false;
+
 #if defined (HAVE_HDF5)
 
   hsize_t dimens[3];
   hid_t space_hid, data_hid;
   space_hid = data_hid = -1;
-  bool retval = true;
 
   space_hid = H5Screate_simple (0, dimens, 0);
   if (space_hid < 0) return false;