server/state: Don't cause so many useless warnings by trying to hash inexisting include files
This commit is contained in:
parent
6384ff4d84
commit
589c1d16ad
@ -64,6 +64,8 @@ static sv_<ss_> list_includes(const ss_ &path, const sv_<ss_> &include_dirs)
|
|||||||
f.while_any(" ");
|
f.while_any(" ");
|
||||||
ss_ quote = f.while_any("<\"");
|
ss_ quote = f.while_any("<\"");
|
||||||
ss_ include = f.next(quote == "<" ? ">" : "\"");
|
ss_ include = f.next(quote == "<" ? ">" : "\"");
|
||||||
|
if(include == "")
|
||||||
|
continue;
|
||||||
bool found = false;
|
bool found = false;
|
||||||
sv_<ss_> include_dirs_now = include_dirs;
|
sv_<ss_> include_dirs_now = include_dirs;
|
||||||
if(quote == "\"")
|
if(quote == "\"")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user