]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add -Wno-error=unused-but-set-variable when building with Clang 13+
authorDimitry Andric <dim@FreeBSD.org>
Thu, 26 Aug 2021 15:36:03 +0000 (17:36 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Sun, 19 Sep 2021 08:16:19 +0000 (10:16 +0200)
commit371456b17b0f0290db1fb8fc57f67a29dc943549
tree13b33c1013857263e88ed186fc5760083466475f
parent304bf88ad91e08fc61787b0de5ec43676df9c398
Add -Wno-error=unused-but-set-variable when building with Clang 13+

This warning triggers many times while building world. Downgrade it to a
warning until all occurrences have been fixed. Once the Clang warnings
have been fixed we should be able to turn it on for GCC as well. See
also f4fed768bba45a406f73ed1491d7e52fd1a8711d which did the same for the
kernel builds.

Reviewed by: arichardson, imp
Differential Revision: https://reviews.freebsd.org/D31927

(cherry picked from commit 45feade38ec3e8e30086dedc6ee81cbf816293e3)
share/mk/bsd.sys.mk