Mercurial > octave
view test/bug-54490.tst @ 33509:d3effbb99fa3 default tip @
build: Silence compiler warning about unused function when compiling with --without-qscintilla.
* gui-settings.cc (copy_font_attributes): place function inside block protected
by "#if defined (HAVE_QSCINTILLA)".
author | Rik <rik@octave.org> |
---|---|
date | Thu, 02 May 2024 12:12:38 -0700 |
parents | 9080316864bf |
children |
line wrap: on
line source
%!function out = bug54490 () %! global k; %! k = 1; %! out = 3; %!endfunction %!test <*54490> %! global k; %! k = 2; %! a = [5, 6]; %! a(k) = bug54490 (); %! assert (a, [5, 3]); %! k = 2; %! a = [5, 6]; %! [a(k)] = bug54490 (); %! assert (a, [5, 3]); %! clear -global k; # cleanup after test