[libvirt] [PATCH v2] gobject: Add wrapper virDomainSetTime()

Zeeshan Ali (Khattak) zeeshanak at gnome.org
Fri Nov 13 19:13:35 UTC 2015


Hi,

>> +    guint settime_flags;
>> +
>> +    g_return_val_if_fail(GVIR_IS_DOMAIN(dom), FALSE);
>> +    g_return_val_if_fail(err == NULL || *err == NULL, FALSE);
>
> I'd keep a g_return_val_if_fail(flags == 0, FALSE);

But doesn't that make G_GNUC_UNUSED declaration wrong then? I think
it's more important to optimize it out rather than ensuring programmer
doesn't pass wrong value by mistake, here.

-- 
Regards,

Zeeshan Ali (Khattak)
________________________________________
Befriend GNOME: http://www.gnome.org/friends/




More information about the libvir-list mailing list