Verified Commit 9f51b250 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.
parent b63ae5b6
......@@ -16,7 +16,7 @@ function dynare(fname, varargin)
% 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')
% The following needs to come early, to avoid spurious warnings (especially under Octave)
% 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();
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
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