From e8b6309c70f0d751e626f8babbad68a16a95577c Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Sun, 28 Nov 2021 05:35:45 +0200 Subject: [PATCH] netbsd h_raw.c test: fake use of sum to avoid warning Sponsored by: The FreeBSD Foundation MFC after: 1 week --- contrib/netbsd-tests/lib/libc/ssp/h_raw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/netbsd-tests/lib/libc/ssp/h_raw.c b/contrib/netbsd-tests/lib/libc/ssp/h_raw.c index a2324814716d..eaac78b231c7 100644 --- a/contrib/netbsd-tests/lib/libc/ssp/h_raw.c +++ b/contrib/netbsd-tests/lib/libc/ssp/h_raw.c @@ -35,6 +35,7 @@ __RCSID("$NetBSD: h_raw.c,v 1.6 2011/07/24 14:00:36 christos Exp $"); #include void poke(int *, size_t); +int y; void poke(int *b, size_t index) @@ -45,6 +46,7 @@ poke(int *b, size_t index) b[index] = 42; for (i = 0; i < 10; i++) sum += b[i]; + y = sum; } int