From 68c0c6eea465f008e252fc0246832835a52f1ec0 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Mon, 8 Aug 2011 17:28:11 +0200 Subject: [PATCH] Define close_process in a manner to avoid side-effects Suggested by Hannes Sixt. Signed-off-by: Johannes Schindelin --- common/systeminfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/systeminfo.h b/common/systeminfo.h index e04043b..d216d17 100644 --- a/common/systeminfo.h +++ b/common/systeminfo.h @@ -22,7 +22,7 @@ pid_t fork_process(const char *cmd, const char **args, const char *wd); int wait_for_process(pid_t pid, int max_time, int *errcode); #ifndef _WIN32 -#define close_process +#define close_process (void)(pid) #else void close_process(pid_t pid); #endif -- 2.11.4.GIT