On Fri, Mar 09, 2018 at 12:24:15AM -0300, Julio Faracco wrote: > Recently, this warning is appearing while libvirt is being compiled: > Function 'qemuAssignDeviceDiskAlias' argument order different: > declaration 'vmdef, def' definition 'def, disk' No objection to the patch, but can you say which compiler you are using and which warning flags you have enabled. AFAIK, we've not seeng this warning with our current preferred compiler flags on either clang or gcc. > > This commit change the default declaration for qemuAssignDeviceDiskAlias > specified at src/qemu/qemu_alias.c. > > Signed-off-by: Julio Faracco <jcfaracco@xxxxxxxxx> > --- > src/qemu/qemu_alias.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/qemu/qemu_alias.h b/src/qemu/qemu_alias.h > index 2246e712f..8c744138c 100644 > --- a/src/qemu/qemu_alias.h > +++ b/src/qemu/qemu_alias.h > @@ -38,8 +38,8 @@ int qemuAssignDeviceControllerAlias(virDomainDefPtr domainDef, > virQEMUCapsPtr qemuCaps, > virDomainControllerDefPtr controller); > > -int qemuAssignDeviceDiskAlias(virDomainDefPtr vmdef, > - virDomainDiskDefPtr def); > +int qemuAssignDeviceDiskAlias(virDomainDefPtr def, > + virDomainDiskDefPtr disk); > > int qemuAssignDeviceHostdevAlias(virDomainDefPtr def, > char **alias, > -- > 2.14.1 > > -- > libvir-list mailing list > libvir-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/libvir-list Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :| -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list