From c5f38186d296b1e4ce59cb51889bce481cce266d Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 8 Jan 2017 15:28:38 +0100 Subject: csource: compile with -Werror Check for compiler warnings during compilation. Don't require -std=c99. Fix existing compiler warnings. --- executor/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'executor/common.h') diff --git a/executor/common.h b/executor/common.h index 6fc798280..34601df0f 100644 --- a/executor/common.h +++ b/executor/common.h @@ -59,8 +59,9 @@ const int kRetryStatus = 69; // So call the syscall directly. __attribute__((noreturn)) void doexit(int status) { + volatile unsigned i; syscall(__NR_exit_group, status); - for (volatile unsigned i = 0;; i++) { + for (i = 0;; i++) { } } @@ -693,7 +694,6 @@ void loop() uint64_t start = current_time_ms(); for (;;) { int res = waitpid(-1, &status, __WALL | WNOHANG); - int errno0 = errno; if (res == pid) break; usleep(1000); -- cgit mrf-deployment