Comment out search term not found WARNING

Returning empty result should be sufficient for detecting a no-match condition.

See forum discussion http://forum.openscad.org/Suppressing-quot-search-term-not-found-quot-warning-in-search-td12359.html
master
Andrew Plumb 2015-04-13 18:46:43 -04:00
parent 82f85cd328
commit 3adfdad66d
1 changed files with 1 additions and 1 deletions

View File

@ -740,7 +740,7 @@ static Value::VectorType search(const std::string &find, const std::string &tabl
if (matchCount == 0) {
gchar utf8_of_cp[6] = ""; //A buffer for a single unicode character to be copied into
if (ptr_ft) g_utf8_strncpy(utf8_of_cp, ptr_ft, 1);
PRINTB(" WARNING: search term not found: \"%s\"", utf8_of_cp);
// PRINTB(" WARNING: search term not found: \"%s\"", utf8_of_cp);
}
if (num_returns_per_match == 0 || num_returns_per_match > 1) {
returnvec.push_back(Value(resultvec));