MCPcopy Create free account
hub / github.com/devosoft/avida / WarnUnused

Method WarnUnused

avida-core/source/tools/cInitFile.cc:389–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387
388
389bool cInitFile::WarnUnused() const
390{
391 bool found = false;
392
393 for (int i = 0; i < m_lines.GetSize(); i++) {
394 if (m_lines[i]->used == false) {
395 if (found == false) {
396 found = true;
397 m_feedback.Warning("unknown lines in input file '%s'.", (const char*)m_filename);
398 }
399 m_feedback.Notify(" %s:%d: %s", (const char*)m_lines[i]->file, m_lines[i]->line_num, (const char*)m_lines[i]->line);
400 }
401 }
402
403 return found;
404}

Callers 1

LoadMethod · 0.80

Calls 3

GetSizeMethod · 0.45
WarningMethod · 0.45
NotifyMethod · 0.45

Tested by

no test coverage detected