Re: [PATCH] src: Fix return types of .stateInitialize callbacks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>

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 :|




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux