GCC 16 started treating these are errors, which leads to a build
failure.
Signed-off-by: Sergio Durigan Junior <sergiodj@sergiodj.net>
} else {
DEBUG(PLUGIN_NAME " plugin: getting state of %i persistent domains", n);
/* Fetch each persistent domain's state and notify it */
+#if COLLECT_DEBUG
int n_notified = n;
+#endif
for (int i = 0; i < n; ++i) {
status = get_domain_state_notify(domains[i]);
if (status != 0) {
+#if COLLECT_DEBUG
n_notified--;
+#endif
ERROR(PLUGIN_NAME " plugin: could not notify state of domain %s",
virDomainGetName(domains[i]));
}