]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Remove ATTRIBUTE_NONNULL(3) from qemuMonitorJSONDrivePivot
authorJohn Ferlan <jferlan@redhat.com>
Thu, 17 Oct 2013 13:21:46 +0000 (09:21 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 17 Oct 2013 23:36:42 +0000 (19:36 -0400)
The header definition didn't match the function declaration, so adjusted
header to reflect the definition.

Found during a Coverity build where STATIC_ANALYSIS is enabled resulting
in the internal.h adding __nonnull__ handling to arguments.

Commit '6d264c91' added support for the qemuMonitorJSONDrivePivot() and
commit 'fbc3adc9' added a corresponding test which ended up triggering
the build failure which I didn't notice until today!

src/qemu/qemu_monitor_json.h

index 51cf19caec3fc93597b32acfc5dcf5b359e61166..a1a754881657a17dc3ea20559ab0634d103ff0bf 100644 (file)
@@ -250,7 +250,7 @@ int qemuMonitorJSONDrivePivot(qemuMonitorPtr mon,
                               const char *device,
                               const char *file,
                               const char *format)
-    ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3);
+    ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
 
 int qemuMonitorJSONBlockCommit(qemuMonitorPtr mon,
                                const char *device,