changeset 18930:f1edad3b4106

avoid some unused parameter warnings * octave-dock-widget.cc: Avoid unused parameter warning. * profiler.cc: Avoid unused parameter warning.
author John W. Eaton <jwe@octave.org>
date Thu, 17 Jul 2014 09:33:27 -0400
parents 3d25cd89fec0
children dbb207d10d7c
files libgui/src/octave-dock-widget.cc libinterp/corefcn/profiler.cc
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/octave-dock-widget.cc	Wed Jul 16 20:02:38 2014 -0400
+++ b/libgui/src/octave-dock-widget.cc	Thu Jul 17 09:33:27 2014 -0400
@@ -198,7 +198,11 @@
 
 // dock the widget
 void
+#if defined (Q_OS_WIN32)
 octave_dock_widget::make_widget (bool dock)
+#else
+octave_dock_widget::make_widget (bool)
+#endif
 {
 #if defined (Q_OS_WIN32)
 
--- a/libinterp/corefcn/profiler.cc	Wed Jul 16 20:02:38 2014 -0400
+++ b/libinterp/corefcn/profiler.cc	Thu Jul 17 09:33:27 2014 -0400
@@ -106,7 +106,7 @@
 }
 
 profile_data_accumulator::tree_node*
-profile_data_accumulator::tree_node::exit (octave_idx_type fcn)
+profile_data_accumulator::tree_node::exit (octave_idx_type /* fcn */)
 {
   // FIXME: These assert statements don't make sense if profile() is called
   //        from within a function hierarchy to begin with.  See bug #39587.