Subject: Re: [PATCH] credential-cache: close stderr in daemon process

From: Junio C Hamano <[email-masked]>
Date: Mon, 15 Sep 2014 14:38:11 -0700

Jeff King <[email-masked]> writes:

> +	if (!debug)
> +		freopen("/dev/null", "w", stderr);

I am getting this:

credential-cache--daemon.c:216:10: error: ignoring return value of
'freopen', declared with attribute warn_unused_result
[-Werror=unused-result]

which is somewhat irritating.  Even though I am not irritated by
this code, but by the compiler and glibc headers, this is apparently
the only offending one, so we may want to fix it anyway.