From 8f7c06df424fffa88422f83ba0a7c58576ae3d91 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 11 Jul 2024 16:07:06 -0700 Subject: libbacktrace: fix testsuite for clang * btest.c (test1, test3): Add optnone attribute. * edtest.c (test1): Likewise. * mtest.c (test1, test3): Likewise. * configure.ac: Use -Wno-attributes and -Wno-unknown-attributes. * configure: Regenerate. --- libbacktrace/edtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbacktrace/edtest.c') diff --git a/libbacktrace/edtest.c b/libbacktrace/edtest.c index d99b8a6..b644d93 100644 --- a/libbacktrace/edtest.c +++ b/libbacktrace/edtest.c @@ -43,7 +43,7 @@ POSSIBILITY OF SUCH DAMAGE. */ #include "testlib.h" -static int test1 (void) __attribute__ ((noinline, noclone, unused)); +static int test1 (void) __attribute__ ((noinline, noclone, optnone, unused)); extern int f2 (int); extern int f3 (int, int); -- cgit v1.1