Mercurial > octave
changeset 28306:21970ad14781
Suppress unnecessary warning messages when configure --without-fltk, --without-portaudio (bug #58385).
* __init_fltk__.cc (F__fltk_check__): Move #if defined (HAVE_FLTK) around test
around entire function.
* audiodevinfo.cc (__recorder_audiorecorder__): Add
octave_unused_parameter (interp) declaration to #else block for
#if defined (HAVE_PORTAUDIO).
author | Rik <rik@octave.org> |
---|---|
date | Sun, 17 May 2020 17:59:50 -0700 |
parents | 6e8d5c99263c |
children | aeb135002a91 |
files | libinterp/dldfcn/__init_fltk__.cc libinterp/dldfcn/audiodevinfo.cc |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/dldfcn/__init_fltk__.cc Sat May 16 15:53:42 2020 +0200 +++ b/libinterp/dldfcn/__init_fltk__.cc Sun May 17 17:59:50 2020 -0700 @@ -2490,22 +2490,21 @@ // autoloaded functions in the PKG_ADD file and will not be visible to // the interpreter. +#if defined (HAVE_FLTK) static octave_value_list F__fltk_check__ (octave::interpreter& interp, const octave_value_list&, int) { -#if defined (HAVE_FLTK) Fl::check (); if (Vdrawnow_requested) Fdrawnow (interp); return octave_value_list (); -#else octave_unused_parameter (interp); err_disabled_feature ("__fltk_check__", "OpenGL and FLTK"); +} #endif -} // Initialize the fltk graphics toolkit.
--- a/libinterp/dldfcn/audiodevinfo.cc Sat May 16 15:53:42 2020 +0200 +++ b/libinterp/dldfcn/audiodevinfo.cc Sun May 17 17:59:50 2020 -0700 @@ -1959,6 +1959,7 @@ retval = recorder; #else + octave_unused_parameter (interp); octave_unused_parameter (args); err_disabled_feature ("__recorder_audiorecorder__",