mirror of git://sourceware.org/git/glibc.git
Fix -Wno-ignored-attributes configure check
The configure check always fail with clang:
conftest.c:5:58: error: expected string literal as argument of 'alias' attribute
5 | extern __typeof (__foo) foo __attribute__ ((weak, alias (__foo)));
| ^
conftest.c:6:58: error: expected string literal as argument of 'alias' attribute
6 | extern __typeof (__foo) bar __attribute__ ((weak, alias (foo)));
| ^
Reviewed-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
8ec0754067
commit
f8b5413001
|
|
@ -7548,8 +7548,8 @@ conftest_code="
|
|||
void __foo (void)
|
||||
{
|
||||
}
|
||||
extern __typeof (__foo) foo __attribute__ ((weak, alias ("__foo")));
|
||||
extern __typeof (__foo) bar __attribute__ ((weak, alias ("foo")));
|
||||
extern __typeof (__foo) foo __attribute__ ((weak, alias (\"__foo\")));
|
||||
extern __typeof (__foo) bar __attribute__ ((weak, alias (\"foo\")));
|
||||
"
|
||||
|
||||
cat > conftest.c <<EOF
|
||||
|
|
|
|||
|
|
@ -1428,8 +1428,8 @@ conftest_code="
|
|||
void __foo (void)
|
||||
{
|
||||
}
|
||||
extern __typeof (__foo) foo __attribute__ ((weak, alias ("__foo")));
|
||||
extern __typeof (__foo) bar __attribute__ ((weak, alias ("foo")));
|
||||
extern __typeof (__foo) foo __attribute__ ((weak, alias (\"__foo\")));
|
||||
extern __typeof (__foo) bar __attribute__ ((weak, alias (\"foo\")));
|
||||
"
|
||||
LIBC_TRY_CC_AND_TEST_CC_COMMAND([if -Wno-ignored-attributes is required for aliases],
|
||||
[$conftest_code],
|
||||
|
|
|
|||
Loading…
Reference in New Issue