qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] suppress 'warn_unused_result' warning


From: Paul Brook
Subject: Re: [Qemu-devel] [PATCH] suppress 'warn_unused_result' warning
Date: Sun, 10 May 2009 23:11:22 +0100
User-agent: KMail/1.9.9

On Sunday 10 May 2009, Chih-Min Chao wrote:
> The patch add error handling to functions with 'warn_unused_result' return
> value
> such as write, read, ftruncate, and realpath.

I'm pretty sure this is wrong.  It feels a lot like blindly papering over 
compiler warnings without actually understanding what's going on.
In some cases errors are actually an expected part of normal operation. In 
many other cases you only handle complete failure, and not partial 
completion.

Paul




reply via email to

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