Re: [libvirt] [PATCH] storage_backend.c: assure clang that inputvol can't be NULL

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

 



On Thu, Sep 03, 2009 at 12:49:25PM +0200, Jim Meyering wrote:
> Daniel P. Berrange wrote:
> > On Thu, Sep 03, 2009 at 11:18:00AM +0200, Jim Meyering wrote:
> >> clang was complaining that a NULL inputvol would be dereferenced
> >> in that "could not open..." diagnostic.
> >>
> >> Since the two sole callers of this function are careful
> >> to call it only when inputvol is non-NULL, this is a good
> >> case for giving the parameter the nonnull attribute:
> 
> When I recompiled everything, this patch needed adjustment.
> For example, I had to include internal.h for the definition
> of ATTRIBUTE_NONNULL.

  ACK
  thanks !

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[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]