[netcf-devel] [PATCH 1/5] Windows port of netcf api calls

Laine Stump laine at laine.org
Thu Sep 23 14:33:25 UTC 2010


  On 09/23/2010 08:24 AM, Eric Blake wrote:
> 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.
>

Ah, I see. It may give the programmer a false sense of security about 
something or other though (I haven't taken the time to mentally 
articulate exactly what, but something ;-)



More information about the netcf-devel mailing list