Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Nov 2021 15:43:16 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: e8b6309c70f0 - main - netbsd h_raw.c test: fake use of sum to avoid warning
Message-ID:  <202111291543.1ATFhGYM065999@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=e8b6309c70f0d751e626f8babbad68a16a95577c

commit e8b6309c70f0d751e626f8babbad68a16a95577c
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-11-28 03:35:45 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-11-29 15:39:51 +0000

    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 <stdlib.h>
 
 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111291543.1ATFhGYM065999>