summaryrefslogtreecommitdiff
path: root/src/parsersettings.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-05-27 22:28:29 (GMT)
committerMarius Kintel <marius@kintel.net>2013-06-06 00:25:57 (GMT)
commit362d689305053b64c299f59df2f098c9b72a1bb0 (patch)
tree51723a8a75b79ea6efbd0c4b4221e8563992c222 /src/parsersettings.cc
parentd320a8528440f340dc182597cd519f9976de7e0d (diff)
Don't auto-reload missing files, reduce warning output from periodically called functions
Diffstat (limited to 'src/parsersettings.cc')
-rw-r--r--src/parsersettings.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/parsersettings.cc b/src/parsersettings.cc
index 8db33a8..ab93b78 100644
--- a/src/parsersettings.cc
+++ b/src/parsersettings.cc
@@ -30,23 +30,24 @@ fs::path search_libs(const fs::path &localpath)
}
// files must be 'ordinary' - they must exist and be non-directories
+// FIXME: We cannot print any output here since these function is called periodically
+// from "Automatic reload and compile"
static bool check_valid(const fs::path &p, const std::vector<std::string> *openfilenames)
{
if (p.empty()) {
- PRINTB("WARNING: File path is blank: %s",p);
+// PRINTB("WARNING: File path is blank: %s",p);
return false;
}
if (!p.has_parent_path()) {
- PRINTB("WARNING: No parent path: %s",p);
+// PRINTB("WARNING: No parent path: %s",p);
return false;
}
if (!fs::exists(p)) {
- PRINTB("WARNING: File not found: %s",p);
- // searched ===
+// PRINTB("WARNING: File not found: %s",p);
return false;
}
if (fs::is_directory(p)) {
- PRINTB("WARNING: %s invalid - points to a directory",p);
+// PRINTB("WARNING: %s invalid - points to a directory",p);
return false;
}
std::string fullname = boosty::stringy(p);
@@ -54,7 +55,7 @@ static bool check_valid(const fs::path &p, const std::vector<std::string> *openf
if (openfilenames) {
BOOST_FOREACH(const std::string &s, *openfilenames) {
if (s == fullname) {
- PRINTB("WARNING: circular include file %s", fullname);
+// PRINTB("WARNING: circular include file %s", fullname);
return false;
}
}
contact: Jan Huwald // Impressum