Mercurial > octave
diff scripts/plot/draw/fplot.m @ 31118:18b8f73595e0
Suppress warning for inline() when used intentionally in core Octave (bug #62682).
* fplot.m, __ezplot__.m: Temporarily suppress warning for "Octave:legacy-function" so
that intentional use of inline() does not produce a confusing warning.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 05 Jul 2022 10:38:41 -0700 |
parents | e1788b1a315f |
children | 597f3ee61a48 |
line wrap: on
line diff
--- a/scripts/plot/draw/fplot.m Tue Jul 05 08:57:15 2022 -0700 +++ b/scripts/plot/draw/fplot.m Tue Jul 05 10:38:41 2022 -0700 @@ -101,6 +101,8 @@ fcn = varargin{1}; if (isa (fcn, "inline")) + ## Don't warn about intentional use of inline functions (Bug #62682) + warning ("off", "Octave:legacy-function", "local"); fcn = vectorize (inline (fcn)); nam = formula (fcn); elseif (is_function_handle (fcn)) @@ -108,6 +110,8 @@ elseif (all (isalnum (fcn))) nam = fcn; elseif (ischar (fcn)) + ## Don't warn about intentional use of inline functions (Bug #62682) + warning ("off", "Octave:legacy-function", "local"); fcn = vectorize (inline (fcn)); nam = formula (fcn); else