[libvirt] [PATCH (RFC?)] Remove usage of __attribute__((nonnull))

Martin Kletzander mkletzan at redhat.com
Wed Apr 5 11:38:46 UTC 2017


On Wed, Apr 05, 2017 at 12:29:03PM +0100, Daniel P. Berrange wrote:
>On Wed, Apr 05, 2017 at 12:38:23PM +0200, Martin Kletzander wrote:

[...]

>> How about we enable it by default for build with new enough GCC (so that
>> it reports these errors without silently dropping the non-NULL checks)?
>
>Yes, it seems that we can use -fno-delete-null-pointer-checks to prevent
>GCC from optimizing away the NULL pointer checks, while having nonnull
>attributes enabled all the time.
>

Or that, yes.  So I'll drop this one.

>
>Regards,
>Daniel
>--
>|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
>|: http://libvirt.org              -o-             http://virt-manager.org :|
>|: http://entangle-photo.org       -o-    http://search.cpan.org/~danberr/ :|
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170405/6d123397/attachment-0001.sig>


More information about the libvir-list mailing list