changeset 24580:a276f008ea74

avoid unused variable warnings if compiling without HDF5 (bug #52850) * ov-base-int.cc (octave_base_int_matrix<T>::save_hdf5_internal, octave_base_int_matrix<T>::load_hdf5_internal, octave_base_int_scalar<T>::save_hdf5_internal, octave_base_int_scalar<T>::load_hdf5_internal): If building without HDF5, also tag save_type parameter as unused.
author John W. Eaton <jwe@octave.org>
date Wed, 10 Jan 2018 08:40:38 -0500
parents 304501c692e6
children 50545190a604
files libinterp/octave-value/ov-base-int.cc
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/octave-value/ov-base-int.cc	Tue Jan 09 21:59:41 2018 -0800
+++ b/libinterp/octave-value/ov-base-int.cc	Wed Jan 10 08:40:38 2018 -0500
@@ -452,6 +452,7 @@
 
 #else
   octave_unused_parameter (loc_id);
+  octave_unused_parameter (save_type);
   octave_unused_parameter (name);
 
   this->warn_save ("hdf5");
@@ -526,6 +527,7 @@
 
 #else
   octave_unused_parameter (loc_id);
+  octave_unused_parameter (save_type);
   octave_unused_parameter (name);
 
   this->warn_load ("hdf5");
@@ -739,6 +741,7 @@
 
 #else
   octave_unused_parameter (loc_id);
+  octave_unused_parameter (save_type);
   octave_unused_parameter (name);
 
   this->warn_save ("hdf5");
@@ -787,6 +790,7 @@
 
 #else
   octave_unused_parameter (loc_id);
+  octave_unused_parameter (save_type);
   octave_unused_parameter (name);
 
   this->warn_load ("hdf5");