With --Wall, add INCABSPATH warning on `include with absolute paths.

This commit is contained in:
Wilson Snyder
2010-12-25 15:50:07 -05:00
parent 285277a50b
commit fedf347b1a
7 changed files with 74 additions and 1 deletions
+3
View File
@@ -90,6 +90,9 @@ protected:
}
void preprocInclude (FileLine* fl, const string& modname) {
if (modname[0]=='/' || modname[0]=='\\') {
fl->v3warn(INCABSPATH,"`include with absolute path should be relative, and use +include: "<<modname);
}
preprocOpen(fl, s_filterp, modname, "Cannot find include file: ");
}