From: Ivan Maidanski Date: Fri, 9 Feb 2018 08:07:03 +0000 (+0300) Subject: Fix 'anonymous type with no linkage used to declare variable' C++ error X-Git-Tag: v8.0.0~357 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=59c916f5669209a78cc07af8aadf5f6365e07947;p=gc Fix 'anonymous type with no linkage used to declare variable' C++ error (fix of commit 8086c72) Issue #201 (bdwgc). * tests/test.c (A): Give some name to struct. * tools/setjmp_t.c (a): Likewise. --- diff --git a/tests/test.c b/tests/test.c index 3a2eb6cb..b2fff59e 100644 --- a/tests/test.c +++ b/tests/test.c @@ -666,7 +666,7 @@ void test_generic_malloc_or_special(void *p) { } /* Try to force a to be strangely aligned */ -volatile struct { +volatile struct A_s { char dummy; AO_t aa; } A; diff --git a/tools/setjmp_t.c b/tools/setjmp_t.c index 2b4c4dc8..fffc65c6 100644 --- a/tools/setjmp_t.c +++ b/tools/setjmp_t.c @@ -55,7 +55,7 @@ int getpagesize(void) } #endif -struct { +struct a_s { char a_a; char * a_b; } a;