]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't add -Winline for WARNS=6
authorAlex Richardson <arichardson@FreeBSD.org>
Mon, 22 Mar 2021 11:55:45 +0000 (11:55 +0000)
committerAlex Richardson <arichardson@FreeBSD.org>
Mon, 22 Mar 2021 11:55:45 +0000 (11:55 +0000)
commitc8c62548bffb83f3d25e062929c45d66fea755f1
treef19774dfaf80818e55dc42ba8169e1d961942cc6
parent6ccdee8ab576577224fb9e4baed05bd0efe933fd
Don't add -Winline for WARNS=6

This warning is very rarely useful (inline is a hint and not mandatory).
This flag results in many warnings being printed when compiling C++
code that uses the standard library with GCC.

This flag was originally added in back in r94332 but the flag is a no-op
in Clang ("This diagnostic flag exists for GCC compatibility, and has no
effect in Clang"). Removing it should make the GCC build output slightly
more readable.

Reviewed By: jrtc27, imp
Differential Revision: https://reviews.freebsd.org/D29235
lib/librt/Makefile
lib/libthr/Makefile
share/mk/bsd.sys.mk
stand/i386/boot2/Makefile
stand/i386/isoboot/Makefile
sys/conf/kern.mk
sys/conf/kern.pre.mk
tools/regression/capsicum/syscalls/Makefile