From d149b9b06ceed37a4da0c4e0cc21178a64d36e49 Mon Sep 17 00:00:00 2001 From: Gerhard Zlabinger Date: Thu, 13 Dec 2012 21:03:41 +0100 Subject: [PATCH] Travis: Fixed Cppcheck warnings --- cli/threadexecutor.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cli/threadexecutor.cpp b/cli/threadexecutor.cpp index 11a60530b..708e7bd0c 100644 --- a/cli/threadexecutor.cpp +++ b/cli/threadexecutor.cpp @@ -43,8 +43,13 @@ ThreadExecutor::ThreadExecutor(const std::map &files, Settings &settings, ErrorLogger &errorLogger) : _files(files), _settings(settings), _errorLogger(errorLogger), _fileCount(0) { -#ifdef THREADING_MODEL_FORK +#if defined(THREADING_MODEL_FORK) _wpipe = 0; +#elif defined(THREADING_MODEL_WIN) + _processedFiles = 0; + _totalFiles = 0; + _processedSize = 0; + _totalFileSize = 0; #endif }