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.
time-shift
Sébastien Villemot 2020-01-21 16:55:42 +01:00
parent b63ae5b619
commit 9f51b2508a
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 4 additions and 3 deletions

View File

@ -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