| 387 | |
| 388 | |
| 389 | bool 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 | } |