[PATCH v5 07/12] Enable --enable-fortify-source with clang
Andreas Schwab
schwab@suse.de
Mon Feb 16 13:38:01 GMT 2026
On Nov 20 2025, Adhemerval Zanella wrote:
> diff --git a/include/bits/stdio2-decl.h b/include/bits/stdio2-decl.h
> index bbb052f192..9758bf4b55 100644
> --- a/include/bits/stdio2-decl.h
> +++ b/include/bits/stdio2-decl.h
> @@ -1 +1,8 @@
> #include <libio/bits/stdio2-decl.h>
> +
> +#ifndef _ISOMAC
> +libc_hidden_proto (__fgets_unlocked_chk)
> +libc_hidden_ldbl_proto (vfprintf)
> +libc_hidden_ldbl_proto (__vasprintf_chk)
> +libc_hidden_ldbl_proto (__vfprintf_chk)
> +#endif
These declarations conflict with the ones in include/stdio.h when
--enable-fortify-source=1.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Libc-alpha
mailing list