diff options
author | John Baldwin <jhb@FreeBSD.org> | 2020-08-04 18:19:29 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2023-03-22 19:23:37 +0000 |
commit | d86f0502b1ecba11a2cc6d86c7167d872fb471fd (patch) | |
tree | 4c0308710fb45d1beb14b5a132731a8f1caebab0 | |
parent | fd153a0a4cfc180241a8a43e19fbe135cef4868c (diff) | |
download | src-d86f0502b1ecba11a2cc6d86c7167d872fb471fd.tar.gz src-d86f0502b1ecba11a2cc6d86c7167d872fb471fd.zip |
Turn off errors for -Wmaybe-uninitialized in GCC 6+.
Recent changes to <sys/tree.h> trigger this warning and seem like a
false positive.
Differential Revision: https://reviews.freebsd.org/D25726
(cherry picked from commit a02fb76280fd663aa46843423002d605a7bd0796)
-rw-r--r-- | share/mk/bsd.sys.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index 7211b54c1804..45f0dcc2c6cf 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -163,6 +163,7 @@ CWARNFLAGS+= -Wno-error=address \ # GCC 6.1.0 .if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 60100 CWARNFLAGS+= -Wno-error=empty-body \ + -Wno-error=maybe-uninitialized \ -Wno-error=nonnull-compare \ -Wno-error=shift-negative-value \ -Wno-error=tautological-compare \ |