diff options
author | Marcus Huderle <huderlem@gmail.com> | 2019-03-07 09:46:14 -0600 |
---|---|---|
committer | Marcus Huderle <huderlem@gmail.com> | 2019-03-07 09:46:14 -0600 |
commit | bd157b301dea3526a4c373737dc8167d9a02b168 (patch) | |
tree | d8b055e8e9fab27a2e10a1fd5f48c5bfa4f0a0a9 /tools/scaninc/scaninc.cpp | |
parent | 6638ebe7fdda1119d8fe0056c8cf0c65cf292c11 (diff) |
Scaninc: Don't insert missing headers into dependencies
Diffstat (limited to 'tools/scaninc/scaninc.cpp')
-rw-r--r-- | tools/scaninc/scaninc.cpp | 14 |
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(); } |