On 09/23/2010 06:06 AM, Laine Stump wrote:
For that matter, I don't understand how this even compiles - all
the
args are marked as ATTRIBUTE_UNUSED, yet "names" is actually used.
gcc's ATTRIBUTE_UNUSED is a hint and not a requirement - it means
'suppress the warning if I don't use this', but not 'tell me if I
mistakenly used it anyways'. Therefore, it is safe to blindly mark a
variable ATTRIBUTE_UNUSED even if it ends up being used, it just looks
funny.
--
Eric Blake eblake(a)redhat.com +1-801-349-2682
Libvirt virtualization library
http://libvirt.org