From f9d57a30993e4c287f44fbcb7c74e55915df7f2e Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Thu, 1 Aug 2013 16:29:12 +0200 Subject: [PATCH] core: fix compiler warning on freopen (ignore file returned) --- src/core/wee-hook.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/wee-hook.c b/src/core/wee-hook.c index ff2702948..f899f02d5 100644 --- a/src/core/wee-hook.c +++ b/src/core/wee-hook.c @@ -1434,9 +1434,11 @@ hook_process_child (struct t_hook *hook_process) char **exec_args, *arg0, str_arg[64]; const char *ptr_url, *ptr_arg; int rc, i, num_args; + FILE *f; /* use "/dev/null" for stdin stream */ - freopen ("/dev/null", "r", stdin); + f = freopen ("/dev/null", "r", stdin); + (void) f; /* redirect stdout/stderr to pipe (so that father process can read them) */ close (HOOK_PROCESS(hook_process, child_read[HOOK_PROCESS_STDOUT]));