server/state: Don't cause so many useless warnings by trying to hash inexisting include files

This commit is contained in:
Perttu Ahola 2014-10-23 21:59:34 +03:00
parent 6384ff4d84
commit 589c1d16ad

View File

@ -64,6 +64,8 @@ static sv_<ss_> list_includes(const ss_ &path, const sv_<ss_> &include_dirs)
f.while_any(" ");
ss_ quote = f.while_any("<\"");
ss_ include = f.next(quote == "<" ? ">" : "\"");
if(include == "")
continue;
bool found = false;
sv_<ss_> include_dirs_now = include_dirs;
if(quote == "\"")