This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Testing build failure with latest GCC
Hi!
> > The f* stream functions are special. You can check for errors using
> > the return value, or using ferror. Therefore, the attribute might not
> > be correct.
> >
> > Considering how difficult is to bypass warn-used attribute (a cast to
> > void is not enough), I wonder if we should drop the attribute.
>
> That is a good point, I thought a '(void)' cast could fix this but I
> see that it does not.
FYI that's bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425
--
Cyril Hrubis
chrubis@suse.cz