mirror of
https://github.com/ianlancetaylor/libbacktrace.git
synced 2026-03-26 20:19:07 +08:00
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.
This commit is contained in:
4
btest.c
4
btest.c
@@ -48,7 +48,7 @@ POSSIBILITY OF SUCH DAMAGE. */
|
||||
|
||||
/* Test the backtrace function with non-inlined functions. */
|
||||
|
||||
static int test1 (void) __attribute__ ((noinline, noclone, unused));
|
||||
static int test1 (void) __attribute__ ((noinline, noclone, optnone, unused));
|
||||
static int f2 (int) __attribute__ ((noinline, noclone));
|
||||
static int f3 (int, int) __attribute__ ((noinline, noclone));
|
||||
|
||||
@@ -162,7 +162,7 @@ f13 (int f1line, int f2line)
|
||||
|
||||
/* Test the backtrace_simple function with non-inlined functions. */
|
||||
|
||||
static int test3 (void) __attribute__ ((noinline, noclone, unused));
|
||||
static int test3 (void) __attribute__ ((noinline, noclone, optnone, unused));
|
||||
static int f22 (int) __attribute__ ((noinline, noclone));
|
||||
static int f23 (int, int) __attribute__ ((noinline, noclone));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user