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:
Adhemerval Zanella 2025-10-17 16:13:13 -03:00
parent 8ec0754067
commit f8b5413001
2 changed files with 4 additions and 4 deletions

4
configure vendored
View File

@ -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

View File

@ -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],