bug-gnulib
[Top][All Lists]
Advanced

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

Re: copy-file.c vs ignoring chown's return value


From: Bruno Haible
Subject: Re: copy-file.c vs ignoring chown's return value
Date: Tue, 1 Mar 2011 23:44:48 +0100
User-agent: KMail/1.9.9

Hi Jim,

> * lib/copy-file.c: Include "ignore-value.h".
> (copy_file_preserving): Ignore chown failure.
> * modules/copy-file (Depends-on): Add ignore-value.

Looks all fine, no objection. Thank you.

> One is to add this pragma along with a comment somewhere in copy-file.c:
> 
>     # pragma GCC diagnostic ignored "-Wunused-result"
> 
> but that seems unwise.

Yes, such use of #pragma would make it harder to move code around between
different .c files.

Bruno
-- 
In memoriam Vladislav Listyev <http://en.wikipedia.org/wiki/Vladislav_Listyev>



reply via email to

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