diff options
author | Alex Richardson <arichardson@FreeBSD.org> | 2021-03-22 11:55:45 +0000 |
---|---|---|
committer | Alex Richardson <arichardson@FreeBSD.org> | 2021-04-22 09:44:51 +0000 |
commit | f3230956454747d4ef4f6d065fd7a5c269d6250d (patch) | |
tree | b3472d075b062cf3836a4ec31eacee5caa45ddcc /lib/librt | |
parent | 78fa908b1e88f78160664e93560b9ac78caecc53 (diff) | |
download | src-f3230956454747d4ef4f6d065fd7a5c269d6250d.tar.gz src-f3230956454747d4ef4f6d065fd7a5c269d6250d.zip |
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
(cherry picked from commit c8c62548bffb83f3d25e062929c45d66fea755f1)
Diffstat (limited to 'lib/librt')
-rw-r--r-- | lib/librt/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/librt/Makefile b/lib/librt/Makefile index 389e0280a6bc..6a751b7a3aa3 100644 --- a/lib/librt/Makefile +++ b/lib/librt/Makefile @@ -8,7 +8,7 @@ CFLAGS+=-I${SRCTOP}/lib/libc/include -I${.CURDIR} .ifndef NO_THREAD_STACK_UNWIND CFLAGS+=-fexceptions .endif -CFLAGS+=-Winline -Wall +CFLAGS+=-Wall LIBADD= pthread WARNS?= 2 |