On Thu, Apr 27, 2017 at 09:36:19AM +0200, Peter Krempa wrote: > On Thu, Apr 27, 2017 at 09:01:58 +0200, Michal Privoznik wrote: > > Firstly, this definition is in a c99 comment, secondly it is not > > needed as VIR_FROM_THIS is defined from vmware/vmware_conf.h. > > > > Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx> > > --- > > tests/vmwarevertest.c | 2 -- > > 1 file changed, 2 deletions(-) > > > > diff --git a/tests/vmwarevertest.c b/tests/vmwarevertest.c > > index 3dbe08b..e0e36fe 100644 > > --- a/tests/vmwarevertest.c > > +++ b/tests/vmwarevertest.c > > @@ -27,8 +27,6 @@ > > > > # include "vmware/vmware_conf.h" > > > > -//# define VIR_FROM_THIS VIR_FROM_NONE > > - > > This test uses the virAsprintf macro which uses the VIR_FROM_THIS macro. > I think the test file should set it explicitly rather than depend on the > one defined by including the header. Almost all our code puts the VIR_FROM_THIS define in the .c file, so IMHO we should fix vmware_conf.h to match 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