diff --git a/src/doxygen.cpp b/src/doxygen.cpp
index 5492dc9..f79e278 100644
--- a/src/doxygen.cpp
+++ b/src/doxygen.cpp
@@ -10697,7 +10697,6 @@ void searchInputFiles()
 
   g_s.begin("Searching for files to process...\n");
   QDict<void> *killDict = new QDict<void>(10007);
-  int inputSize=0;
   QStrList &inputList=Config_getList("INPUT");
   g_inputFiles.setAutoDelete(TRUE);
   s=inputList.first();
@@ -10710,7 +10709,7 @@ void searchInputFiles()
       // strip trailing slashes
       if (path.at(l-1)=='\\' || path.at(l-1)=='/') path=path.left(l-1);
   
-      inputSize+=readFileOrDirectory(
+      (void)readFileOrDirectory(
           path,
           Doxygen::inputNameList,
           Doxygen::inputNameDict,
