From 1d77787fb4293c76292390f7e423599a1dc0715c Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Fri, 28 Jul 2023 10:47:13 +0100 Subject: [PATCH] stress-schedmix: only declare buf array for linux builds Signed-off-by: Colin Ian King --- stress-schedmix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stress-schedmix.c b/stress-schedmix.c index 7c95d7529..65209aff2 100644 --- a/stress-schedmix.c +++ b/stress-schedmix.c @@ -115,7 +115,9 @@ static inline void stress_schedmix_waste_time(const stress_args_t *args) int i, n, status; pid_t pid; double min1, min5, min15; +#if defined(__linux__) char buf[256]; +#endif struct tms tms_buf; #if defined(HAVE_GETRUSAGE) && \ (defined(RUSAGE_SELF) || defined(RUSAGE_CHILDREN))