aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2020-09-10 17:46:40 +0000
committerKyle Evans <kevans@FreeBSD.org>2020-09-10 17:46:40 +0000
commitd328162dcb73d9041fe8ceb9fbae7276c3dacb53 (patch)
tree78b9e9da95da755fe6fd8badc7382402150dda62
parent469c887f3601da7ba0fcbeca58192cbe0274a1c8 (diff)
downloadsrc-d328162dcb73d9041fe8ceb9fbae7276c3dacb53.tar.gz
src-d328162dcb73d9041fe8ceb9fbae7276c3dacb53.zip
netbsd-tests: import fix for a libexecinfo warning at higher WARNSvendor/NetBSD/tests
v1.17 of this file included a fix that I just submitted upstream to fix a warning about prevent_inline with external linkage not having been previously declared.
Notes
Notes: svn path=/vendor/NetBSD/tests/dist/; revision=365599
-rw-r--r--lib/libexecinfo/t_backtrace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libexecinfo/t_backtrace.c b/lib/libexecinfo/t_backtrace.c
index 00f716e9c972..dbfa29abd434 100644
--- a/lib/libexecinfo/t_backtrace.c
+++ b/lib/libexecinfo/t_backtrace.c
@@ -1,4 +1,4 @@
-/* $NetBSD: t_backtrace.c,v 1.16 2014/11/04 00:20:19 justin Exp $ */
+/* $NetBSD: t_backtrace.c,v 1.17 2020/09/09 20:04:10 christos Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_backtrace.c,v 1.16 2014/11/04 00:20:19 justin Exp $");
+__RCSID("$NetBSD: t_backtrace.c,v 1.17 2020/09/09 20:04:10 christos Exp $");
#include <atf-c.h>
#include <string.h>
@@ -47,7 +47,7 @@ void myfunc2(size_t ncalls);
void myfunc1(size_t origcalls, volatile size_t ncalls);
void myfunc(size_t ncalls);
-volatile int prevent_inline;
+static volatile int prevent_inline;
void
myfunc3(size_t ncalls)