Eric Blake <e...@byu.net> writes:

> Also, the point of GNULIB_POSIXCHECK was not whether other compilers
> can detect the problem, so much as making it easy for a random
> developer on Linux to quickly determine if they are using something
> that merely happened to work because they were on Linux, but would
> fail during porting to other platforms, without having to have access
> to the other platforms.  If other compilers can be taught to issue a
> similar warning - great.  But that is not the driving use case of why
> we introduced the GL_LINK_WARNING in the first place.

Indeed -- so the link-warning stuff should be the least complex solution
that works for typical maintainers.  The gcc attributes approach seems
appropriate.

> Indeed.  So now that I have your vote of confidence, I'll probably
> start working on a proposal to implement my option 4, by revamping
> GNULIB_POSIXCHECK to use attributes rather than link warnings.

Thanks!

/Simon


Reply via email to