[Top][All Lists]

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

[Bug-zile] Re: [PATCH] Check `fchmod' and `fchown' return value.

From: Reuben Thomas
Subject: [Bug-zile] Re: [PATCH] Check `fchmod' and `fchown' return value.
Date: Tue, 2 Mar 2010 22:57:57 +0000

On 2 March 2010 22:04, Giuseppe Scrivano <address@hidden> wrote:
Reuben Thomas <address@hidden> writes:

> I believe Emacs does not report the error.

Yes, emacs doesn't report it.

>     I think it will be better to handle both functions in the same way as
>     they are complementary to each other.
> I am happy to live with the warning: in this case, it is misguided: I really don't care if the operation fails, as I have no Plan B!

AFAICS, there is no decent way to disable it, even a cast to void will not
work, only a disgusting "if (....){};" does.  I think you don't want it
in the zile code :-)

Yes, I think this was pretty much my reasoning the last time I thought about it. Maybe I should put a comment in the code explaining why I leave the warning :)


reply via email to

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