changeset 10644:45b72e631cb5

avoid unused param warnings in onCleanup
author Jaroslav Hajek <highegg@gmail.com>
date Thu, 20 May 2010 07:27:45 +0200
parents 9852264314d1
children 8645b7087859
files src/ChangeLog src/DLD-FUNCTIONS/onCleanup.cc
diffstat 2 files changed, 15 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Wed May 19 16:20:48 2010 +0200
+++ b/src/ChangeLog	Thu May 20 07:27:45 2010 +0200
@@ -1,3 +1,10 @@
+2010-05-20  Jaroslav Hajek  <highegg@gmail.com>
+
+	* DLD-FUNCTIONS/onCleanup.cc (octave_oncleanup::load_ascii,
+	octave_oncleanup::load_binary, octave_oncleanup::load_hdf5,
+	octave_oncleanup::save_ascii, octave_oncleanup::save_binary,
+	octave_oncleanup::save_hdf5): Comment out unused params.
+
 2010-05-18  Jaroslav Hajek  <highegg@gmail.com>
 
 	* defun-int.h (octave_auto_shlib): Make members public.
--- a/src/DLD-FUNCTIONS/onCleanup.cc	Wed May 19 16:20:48 2010 +0200
+++ b/src/DLD-FUNCTIONS/onCleanup.cc	Thu May 20 07:27:45 2010 +0200
@@ -184,21 +184,21 @@
 }
 
 bool 
-octave_oncleanup::save_ascii (std::ostream& os)
+octave_oncleanup::save_ascii (std::ostream& /* os */)
 {
   warn_save_load ();
   return true;
 }
 
 bool 
-octave_oncleanup::load_ascii (std::istream& is)
+octave_oncleanup::load_ascii (std::istream& /* is */)
 {
   warn_save_load ();
   return true;
 }
 
 bool 
-octave_oncleanup::save_binary (std::ostream& os, bool& save_as_floats)
+octave_oncleanup::save_binary (std::ostream& /* os */, bool& /* save_as_floats */)
 {
   warn_save_load ();
   return true;
@@ -206,8 +206,8 @@
 
 
 bool 
-octave_oncleanup::load_binary (std::istream& is, bool swap, 
-                               oct_mach_info::float_format fmt)
+octave_oncleanup::load_binary (std::istream& /* is */, bool /* swap */, 
+                               oct_mach_info::float_format /* fmt */)
 {
   warn_save_load ();
   return true;
@@ -215,14 +215,15 @@
 
 #if defined (HAVE_HDF5)
 bool 
-octave_oncleanup::save_hdf5 (hid_t loc_id, const char *name, bool save_as_floats)
+octave_oncleanup::save_hdf5 (hid_t /* loc_id */, const char * /* name */, 
+                             bool /* save_as_floats */)
 {
   warn_save_load ();
   return true;
 }
 
 bool 
-octave_oncleanup::load_hdf5 (hid_t loc_id, const char *name)
+octave_oncleanup::load_hdf5 (hid_t /* loc_id */, const char * /* name */)
 {
   warn_save_load ();
   return true;