Unverified Commit 4c0b2e8c authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Mitigation for spurious warning in Octave

Because of a bug, Octave wrongly complains that matlab/+pac/+bgp/{get,set}.m
shadow built-in functions (see https://savannah.gnu.org/bugs/?46849).

We disable the warning as early as we can after running the dynare command.
However the warning will nevertheless appear two times in a given Octave
session (the first time when the addpath to Dynare is done, the second time
when the dynare command is run).
parent e26a5e28
Pipeline #4729 failed with stages
in 72 minutes and 43 seconds
......@@ -10,7 +10,7 @@ function warning_config()
% none
% Copyright (C) 2008-2017 Dynare Team
% Copyright (C) 2008-2021 Dynare Team
% This file is part of Dynare.
......@@ -48,6 +48,11 @@ if isoctave
warning('off', 'Octave:fortran-indexing');
warning('off', 'Octave:classdef-to-struct');
warning('off', 'Octave:legacy-function'); % For strmatch and isdir
% The following is necessary because of matlab/+pac/+bgp/{get,set}.m
% which triggers this bug: https://savannah.gnu.org/bugs/?46849
% The warning can be reenabled once the bug is fixed.
warning('off', 'Octave:shadowed-function');
% In MATLAB >= 7.7, don't display a warning if we use deprecated
% interface to set seed of random number generators
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment