config/Global: remove ConfigBlock::SetUsed() call, let caller do that

This fixes an old bug which caused the "unused" warnings to be
unreliable; only the first block in the list was marked as being
"used", no matter if it was really used, and the rest was never marked
as "used", suppressing all warnings for them.
This commit is contained in:
Max Kellermann
2018-07-17 21:08:41 +02:00
parent ef38330d74
commit 5b192beaa5
9 changed files with 18 additions and 6 deletions

View File

@@ -53,6 +53,8 @@ input_stream_global_init(EventLoop &event_loop)
/* the plugin is disabled in mpd.conf */
continue;
block->SetUsed();
try {
if (plugin->init != nullptr)
plugin->init(event_loop, *block);