Date: Wed, 9 Jan 2019 15:12:12 -0800 From: Devin Teske <dteske@FreeBSD.org> To: Rebecca Cran <rebecca@bluestop.org> Cc: Devin Teske <dteske@FreeBSD.org>, Gavin Howard <gavin.d.howard@gmail.com>, "freebsd-arch@freebsd.org" <freebsd-arch@freebsd.org> Subject: Re: GNU-compatible, BSD-licensed bc Message-ID: <9AEFA857-D93C-403C-B422-5A41B20E0DCA@FreeBSD.org> In-Reply-To: <etPan.5c367ea2.327b23c6.2866@bluestop.org> References: <54ECF149-5ACD-4568-ADF5-FB4736B35DA1@FreeBSD.org> <etPan.5c367ea2.327b23c6.2866@bluestop.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Jan 9, 2019, at 3:04 PM, Rebecca Cran <rebecca@bluestop.org> wrote: >=20 > On January 9, 2019 at 4:02:57 PM, Devin Teske (dteske@freebsd.org = <mailto:dteske@freebsd.org>) wrote: >=20 >>=20 >> Yes. -Weverything is the strictest I have ever seen.=20 >>=20 >> Often times I find that software cannot be compiled with -Weverything = despite=20 >> passing -Wall -Wextra because some of the system/library headers fail = checks.=20 >>=20 >> I've often considered a great accomplishment when I can pass = -Weverything. > =46rom https://embeddedartistry.com/blog/2017/3/7/clang-weverything = <https://embeddedartistry.com/blog/2017/3/7/clang-weverything> : >=20 > =E2=80=9CClang helpfully provides a flag called -Weverything. Unlike = -Wall, the -Weverything flag really will enable all warnings. This flag = is especially useful if you are a warning lover - new warnings will = automatically be enabled when you upgrade clang/Xcode.=20 >=20 > Turning -Weverything can be an eye-opening experience, even for those = who religiously squash warnings. I often turn on -Weverything = temporarily to review any of the less-common warnings and see what's = worth fixing in my code base.=E2=80=9D >=20 >=20 >=20 With few exceptions, I've made it the default for one of my latest = projects: = https://github.com/FrauBSD/pkgcenter/blob/master/depend/libcmb/configure.i= n = <https://github.com/FrauBSD/pkgcenter/blob/master/depend/libcmb/configure.= in> AS_IF(test "$CC" =3D clang, [ CFLAGS=3D"${CFLAGS:+$CFLAGS }$( echo \ -Weverything \ -Wno-extra-semi \ -Wno-padded \ -Wno-reserved-id-macro \ -Wno-unused-macros \ )" ]) --=20 Devin=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9AEFA857-D93C-403C-B422-5A41B20E0DCA>