diff --git a/src/@dseries/dseries.m b/src/@dseries/dseries.m
index b9b199005a458984e87e79db383e179d17b575ca..e51a6a9b6a003ba11cafa899025dcdf6d4c5b0db 100644
--- a/src/@dseries/dseries.m
+++ b/src/@dseries/dseries.m
@@ -2,7 +2,7 @@ classdef dseries<handle % --*-- Unitary tests --*--
 
 % Class for time series.
 
-% Copyright (C) 2013-2018 Dynare Team
+% Copyright (C) 2013-2019 Dynare Team
 %
 % This code is free software: you can redistribute it and/or modify
 % it under the terms of the GNU General Public License as published by
@@ -84,7 +84,6 @@ methods
                 o.tags = tags;
             elseif ~isoctave() && ~matlab_ver_less_than('8.2') && istable(varargin{1})
                 % It is assumed that the dates are in the first column.
-                thistable = varargin{1};
                 o.name = varargin{1}.Properties.VariableNames(2:end);
                 o.tex = name2tex(o.name);
                 o.data = varargin{1}{:,2:end};
@@ -106,7 +105,7 @@ methods
                 % Instantiate dseries object with a data file and force the initial date to
                 % be as given by the second input argument (initial period represented
                 % with a dates object).
-                [init, data, varlist, tex, ops, tags] = load_data(varargin{1});
+                [~, data, varlist, tex, ops, tags] = load_data(varargin{1});
                 o.data = data;
                 o.name = varlist;
                 o.dates = varargin{2}:varargin{2}+(nobs(o)-1);
@@ -119,7 +118,7 @@ methods
                 % Instantiate dseries object with a data file and force the initial date to
                 % be as given by the second input argument (initial period represented with a
                 % string).
-                [init, data, varlist, tex, ops, tags] = load_data(varargin{1});
+                [~, data, varlist, tex, ops, tags] = load_data(varargin{1});
                 o.data = data;
                 o.name = varlist;
                 o.dates = dates(varargin{2}):dates(varargin{2})+(nobs(o)-1);