Skip to content
Snippets Groups Projects
Verified Commit 9974c26b authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Disable spurious warnings as early as possible

This is necessary for Octave under Windows, to avoid a warning about isdir()
triggered by user_has_octave_forge_package.m.

(cherry picked from commit 9f51b250)
parent 626637c8
Branches
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ function dynare(fname, varargin)
% SPECIAL REQUIREMENTS
% none
% Copyright (C) 2001-2019 Dynare Team
% Copyright (C) 2001-2020 Dynare Team
%
% This file is part of Dynare.
%
......@@ -45,6 +45,9 @@ if ~nargin || strcmpi(fname,'help')
return
end
% The following needs to come early, to avoid spurious warnings (especially under Octave)
warning_config;
% Set default local options
change_path_flag = true;
......@@ -65,8 +68,6 @@ check_matlab_path(change_path_flag);
% Detect if MEX files are present; if not, use alternative M-files
dynareroot = dynare_config();
warning_config()
if isoctave
% The supported_octave_version.m file is not in git nor in the source
% package, it is manually added in binary packages distributed on dynare.org
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment