
22 May
2024
22 May
'24
6:22 a.m.
On Wed, May 22, 2024 at 12:08:15PM +0200, Michal Privoznik wrote:
The virStateDriver struct has .stateInitialize callback which is declared to return virDrvStateInitResult enum. But some drivers return a plain int in their implementation which is UB.
Any idea if there's a warning flag we could potentially turn on that would diagnose such a mis-match ? Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> With 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 :|