diff --git a/src/osd/modules/debugger/qt/deviceswindow.cpp b/src/osd/modules/debugger/qt/deviceswindow.cpp index f3e4c25c586..e14e552fc81 100644 --- a/src/osd/modules/debugger/qt/deviceswindow.cpp +++ b/src/osd/modules/debugger/qt/deviceswindow.cpp @@ -92,8 +92,11 @@ int DevicesWindowModel::rowCount(const QModelIndex &parent) const device_t *dparent = static_cast(parent.internalPointer()); int count = 0; - for (device_t &child : dparent->subdevices()) + for (device_t &child : dparent->subdevices()) + { + (void)child; count++; + } return count; }