On Tue, Dec 18, 2012 at 12:31:43PM -0800, Junio C Hamano wrote:

> * jk/error-const-return (2012-12-15) 2 commits
>  - silence some -Wuninitialized false positives
>  - make error()'s constant return value more visible
> 
>  Help compilers' flow analysis by making it more explicit that
>  error() always returns -1, to reduce false "variable used
>  uninitialized" warnings.
> 
>  This is still an RFC.

What's your opinion on this? The last round I posted (and what you have
in pu) is about as good as this technique is going to get. So it is
really a taste thing. On the one hand, I really like that it is not just
papering over the problem, but rather giving the compiler more data to
do its analysis. On the other hand, it makes the source kind of ugly.

I don't think there's a rush on it, but I'm just sifting through my
half-done topics.

-Peff
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to