diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-08 18:14:28 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-08 18:14:28 +0000 |
commit | 8177b8375eee80fb4c9772cbb3c7fe46826680cc (patch) | |
tree | 710574625bedae66f35e1186074c8f4c9849ba88 | |
parent | e6e7c7863193b63dc91e8c192ec3e9603d415120 (diff) | |
download | src-8177b8375eee80fb4c9772cbb3c7fe46826680cc.tar.gz src-8177b8375eee80fb4c9772cbb3c7fe46826680cc.zip |
For kernel builds, make the -Waddress-of-packed-member warning non-fatal.
The warning is informative, but often there is no real alignment problem.
Notes
Notes:
svn path=/projects/clang400-import/; revision=311691
-rw-r--r-- | sys/conf/kern.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index 55c7878b66e1..27dd31e99e2c 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -33,6 +33,9 @@ CWARNEXTRA?= -Wno-error-tautological-compare -Wno-error-empty-body \ .if ${COMPILER_VERSION} >= 30700 CWARNEXTRA+= -Wno-error-shift-negative-value .endif +.if ${COMPILER_VERSION} >= 40000 +CWARNEXTRA+= -Wno-error-address-of-packed-member +.endif CLANG_NO_IAS= -no-integrated-as .if ${COMPILER_VERSION} < 30500 |