]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Adjust ATTRIBUTE_NONNULL
authorJohn Ferlan <jferlan@redhat.com>
Fri, 21 Jun 2019 16:49:54 +0000 (12:49 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 21 Jun 2019 19:35:51 +0000 (15:35 -0400)
Commit 7bf679ae removed the @json argument from the qemuMonitorOpen
prototype; however, it did not update the ATTRIBUTE_NONNULL value
which causes a build failure for when checking is enabled such as
when lv_cv_static_analysis is enabled.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_monitor.h

index 35e3d28c22a530890bb9be90f502b24649027a39..c41428b0480c0a1cb8e659df1d10d661db74e355 100644 (file)
@@ -343,7 +343,7 @@ qemuMonitorPtr qemuMonitorOpen(virDomainObjPtr vm,
                                unsigned long long timeout,
                                qemuMonitorCallbacksPtr cb,
                                void *opaque)
-    ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(6);
+    ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(5);
 qemuMonitorPtr qemuMonitorOpenFD(virDomainObjPtr vm,
                                  int sockfd,
                                  qemuMonitorCallbacksPtr cb,