summaryrefslogtreecommitdiff
path: root/tools/scaninc/scaninc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/scaninc/scaninc.cpp')
-rw-r--r--tools/scaninc/scaninc.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/tools/scaninc/scaninc.cpp b/tools/scaninc/scaninc.cpp
index 696842dc9..b95cbd033 100644
--- a/tools/scaninc/scaninc.cpp
+++ b/tools/scaninc/scaninc.cpp
@@ -97,7 +97,6 @@ int main(int argc, char **argv)
}
for (auto include : file.GetIncludes())
{
- bool found = false;
for (auto includeDir : includeDirs)
{
std::string path(includeDir + include);
@@ -108,22 +107,9 @@ int main(int argc, char **argv)
{
filesToProcess.push(path);
}
- found = true;
break;
}
}
- if (!found)
- {
- if (GetFileType(include) == SourceFileType::Header)
- // We don't have any generated .h files... yet.
- // Better to give a warning; debugging the makefile when a
- // header is missing is very difficult.
- fprintf(stderr, "scaninc: warning: C header file \"%s\" not found. (included from \"%s\")\n",
- include.c_str(), filePath.c_str());
-
- // It's probably a generated file.
- dependencies.insert(include);
- }
}
includeDirs.pop_back();
}