bug-coreutils
[Top][All Lists]
Advanced

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

Re: dd and closed stderr


From: Eric Blake
Subject: Re: dd and closed stderr
Date: Fri, 28 Aug 2009 16:43:17 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Pádraig Brady <P <at> draigBrady.com> writes:

> > -clone_file (int dest_fd, int src_fd)
> > +clone_file (int dest_fd ATTRIBUTE_UNUSED, int src_fd ATTRIBUTE_UNUSED)
> 
> Minor nit. Would it be better to put "(void) dest_fd; (void) src_fd;"
> in the else clause here as those parameters need to be used usually.

Using ATTRIBUTE_UNUSED implies 'might be unused', not 'never used'.  But yes, 
for unused parameters, I like the idea of (void) dest_fd in the function body 
rather than ATTRIBUTE_UNUSED in the function declaration in cases where we know 
that some compilation paths use it.  I'll adjust my patch accordingly.

-- 
Eric Blake







reply via email to

[Prev in Thread] Current Thread [Next in Thread]