diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-06-13 15:02:02 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-06-13 15:02:02 +0200 |
commit | 1ee4596086835e38cd2366dc17e46265cb9f5bda (patch) | |
tree | 0309a785bf7605ce72dacbc28459f331b48952cd | |
parent | 3c4c149abae048e421f8a18e6543b247e703e95b (diff) | |
download | extrace-1ee4596086835e38cd2366dc17e46265cb9f5bda.tar.gz extrace-1ee4596086835e38cd2366dc17e46265cb9f5bda.tar.xz extrace-1ee4596086835e38cd2366dc17e46265cb9f5bda.zip |
more warnings
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | extrace.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile index 297ce12..c7e98b5 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CFLAGS=-Wall -pedantic -ansi +CFLAGS=-g -O2 -Wall -Wno-switch -Wextra -Wwrite-strings -pedantic -ansi all: extrace pwait diff --git a/extrace.c b/extrace.c index 8619fa1..699a1f8 100644 --- a/extrace.c +++ b/extrace.c @@ -121,12 +121,14 @@ pid_depth(pid_t pid) static void sigint(int sig) { + (void)sig; quit = 1; } static void sigchld(int sig) { + (void)sig; while (waitpid(-1, NULL, WNOHANG) > 0) ; quit = 1; @@ -164,7 +166,7 @@ handle_msg(struct cn_msg *cn_hdr) char cwd[PATH_MAX]; char *argvrest; - int r = 0, r2 = 0, r3 = 0, fd, i, d; + int r = 0, r2 = 0, r3 = 0, fd, d; struct proc_event *ev = (struct proc_event *)cn_hdr->data; if (ev->what == PROC_EVENT_EXEC) { |