Skip to content
Snippets Groups Projects
Commit 1dd9ca8e authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Activate warning backtrace even for Octave

parent 7f5f99b4
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ function warning_config() ...@@ -10,7 +10,7 @@ function warning_config()
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2008 Dynare Team % Copyright (C) 2008-2010 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %
...@@ -28,6 +28,10 @@ function warning_config() ...@@ -28,6 +28,10 @@ function warning_config()
% along with Dynare. If not, see <http://www.gnu.org/licenses/>. % along with Dynare. If not, see <http://www.gnu.org/licenses/>.
warning on; warning on;
% Display a calling stack trace when a warning is issued
warning('on', 'backtrace');
if exist('OCTAVE_VERSION') if exist('OCTAVE_VERSION')
warning('off', 'Octave:separator-insert'); warning('off', 'Octave:separator-insert');
warning('off', 'Octave:matlab-incompatible'); warning('off', 'Octave:matlab-incompatible');
...@@ -40,6 +44,4 @@ if exist('OCTAVE_VERSION') ...@@ -40,6 +44,4 @@ if exist('OCTAVE_VERSION')
warning('off', 'Octave:string-concat'); warning('off', 'Octave:string-concat');
warning('off', 'Octave:variable-switch-label'); warning('off', 'Octave:variable-switch-label');
warning('off', 'Octave:fortran-indexing'); warning('off', 'Octave:fortran-indexing');
else
warning backtrace;
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment