mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
nss: Disable Werror
with newer compilers we are seeing new warnings, e.g.
error: argument 1 of type 'int[1]' with mismatched bound [-Werror=array-parameter=]
8 | extern void pr_static_assert(int arg[(((long unsigned int)-1) > (long unsigned int)1) ? 1 : -1]);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
with gcc11 and clang has its own set which triggers here as well, its
better to disable werror therefore, we still have warnings if someone
wants to fix them but they wont break the builds
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -121,7 +121,8 @@ do_compile() {
|
||||
fi
|
||||
|
||||
export NSS_DISABLE_GTESTS=1
|
||||
|
||||
# see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99420
|
||||
export NSS_ENABLE_WERROR=0
|
||||
# We can modify CC in the environment, but if we set it via an
|
||||
# argument to make, nsinstall, a host program, will also build with it!
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user