[sheepdog] [PATCH] sheep: mute gcc warning of uninitialized devnull_fd

MORITA Kazutaka morita.kazutaka at gmail.com
Thu May 2 14:52:25 CEST 2013


At Thu,  2 May 2013 13:40:46 +0800,
Liu Yuan wrote:
> 
> From: Liu Yuan <tailai.ly at taobao.com>
> 
> sheep.c:446:8: warning: ‘devnull_fd’ may be used uninitialized in this function [-Wuninitialized]
> sheep.c:395:11: note: ‘devnull_fd’ was declared here
> 
> Just init devnull_fd to mute the warning.
> 
> Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
> ---
>  sheep/sheep.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks!

Kazutaka



More information about the sheepdog mailing list