[libvirt] [PATCHv2] storage_encryption: silence clang warning
Eric Blake
eblake at redhat.com
Mon May 10 20:33:54 UTC 2010
On 05/10/2010 02:32 PM, Jim Meyering wrote:
>
> Using the cast is the lesser evil ;)
>
>>>
>>> Of course, avoiding casts is good, too, but IMHO, not if
>>> it makes us obfuscate (even ever so slightly) the types we use.
>>
>> Well, the real point of this patch was to silence a compiler warning
>> (not that we'd ever planning on passing an indent > 2G). Given Dave's
>> ACK, I went ahead and applied v2 as proposed, even if it does slightly
>> obfuscate the usage.
>
> Warning removal is important.
> But it can end up being counterproductive if not done carefully.
Should I go ahead and revert v2, going back to v1 which localized the
change to just one file?
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100510/747aa589/attachment-0001.sig>
More information about the libvir-list
mailing list