summary refs log tree commit diff
path: root/src/jobs.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-04-15 13:50:27 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2010-04-15 13:50:27 +0800
commitdc2bc17c7bbe3188cfb0c695dc472b39bcf0b27a (patch)
tree49a4b30925f255ec5f92ec4a9ab7254553117f5b /src/jobs.h
parent[BUILTIN] Use faccessat if available (diff)
downloaddash-dc2bc17c7bbe3188cfb0c695dc472b39bcf0b27a.tar.gz
dash-dc2bc17c7bbe3188cfb0c695dc472b39bcf0b27a.zip
[JOBS] Fix for job control off warning
There seems to be a problem with the new version of dash
with job control off.  I can't tell if it is just a warning or is a
manifest bug.

usr/dash/trap.c: In function `exitshell':
usr/dash/trap.c:376: warning: suggest braces around empty body in an `if' statement

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--src/jobs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jobs.h b/src/jobs.h
index 26e421d..9c095ea 100644
--- a/src/jobs.h
+++ b/src/jobs.h
@@ -105,5 +105,5 @@ int waitforjob(struct job *);
 int stoppedjobs(void);
 
 #if ! JOBS
-#define setjobctl(on)	/* do nothing */
+#define setjobctl(on) ((void)(on))	/* do nothing */
 #endif