Re: Wrappers dropping gcc/clang -w

Roland Illig <[email protected]> Sun, 19 Jul 2026 21:47:40 +0200
Newsgroups gmane.os.netbsd.devel.packages
Message-ID <[email protected]>
Am 17.07.2026 um 16:31 schrieb Jonathan Perkin:
> Back in 2007 Roland added this to the legacy shell wrappers:
>=20
>    # There are some packages suppressing all warnings. We don't want tha=
t.
>    -w                     ) transform_discard ;;
>=20
> [...]
>=20
> I'd be interested in others thoughts here.  I intensely dislike magic,=
=20
> and this feels very much like us poking our nose in where it doesn't=20
> belong, or should at least be some mk.conf option to enable extra=20
> BUILDLINK_TRANSFORM for people who want to do builds that enforce=20
> stricter environments than the software they are building do themselves.

While it has worked in the past 19 years, I agree. It might be good to
loudly warn about such cases instead of discarding -w silently. Or, as
you suggest, just passing it through unmodified.

I don't remember the "some packages" that used that compiler option back
then. So sure, give it a try.

Roland