changeset 22254:daa81db564ac

Silence unused parameter warning when compiling with Qt5. * main-window.cc (create_default_editor): Use octave_unused_parameter() in #else branch when HAVE_QSCINTILLA is false.
author Rik <rik@octave.org>
date Wed, 10 Aug 2016 09:20:14 -0700
parents dbf7fd79e391
children 8e18e364a686
files libgui/src/main-window.cc
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/main-window.cc	Tue Oct 06 12:12:56 2015 +0200
+++ b/libgui/src/main-window.cc	Wed Aug 10 09:20:14 2016 -0700
@@ -71,6 +71,8 @@
 #if defined (HAVE_QSCINTILLA)
   return new file_editor (p);
 #else
+  octave_unused_parameter (p);
+
   return 0;
 #endif
 }