Paul Eggert wrote:
> > +            /* These actions take no argument.  */
> > +            result = fcntl (fd, action, NULL);
> > +            break;
> 
> If an action takes no argument, why pass one? Couldn't that run into more 
> static-error complaints and/or technical violations of POSIX?

Indeed, you are right. (I was thinking more in terms of uninitialized
memory accesses, as detected by valgrind. But you are right, static
checkers might complain about the unused argument. gcc already complains
about excess arguments in 'fprintf' invocations. Maybe soon also in
'open' and 'fcntl' invocations...)

Bruno


Reply via email to