nss: suppress unused-function compile error
PATCH 1/1 nss: suppress unused-function compile error
Allows qemumips64 nss to compile.
Signed-off-by Joe Slater <[email protected]>
--- .../nss/nss/no_unused_function_error.patch | 18 ++++++++++++++++++ meta-oe/recipes-support/nss/nss_3.51.bb | 1 + 2 files changed, 19 insertions(+) create mode 100644 meta-oe/recipes-support/nss/nss/no_unused_function_error.patch
meta-oe/recipes-support/nss/nss/no_unused_function_error.patch new file +18 -0
@@ -0,0 +1,18 @@ +nss: suppress unused-function compile error + +Upstream-Status: Inappropriate [workaround] + +Signed-off-by: Joe Slater <[email protected]> + + +--- a/nss/coreconf/Werror.mk ++++ b/nss/coreconf/Werror.mk +@@ -96,7 +96,7 @@ ifndef WARNING_CFLAGS + endif #ndef NSS_ENABLE_WERROR + + ifeq ($(NSS_ENABLE_WERROR),1) +- WARNING_CFLAGS += -Werror ++ WARNING_CFLAGS += -Werror -Wno-error=unused-function + else + # Old versions of gcc (< 4.8) don't support #pragma diagnostic in functions. + # Use this to disable use of that #pragma and the warnings it suppresses.
meta-oe/recipes-support/nss/nss_3.51.bb +1 -0
@@ -32,6 +32,7 @@ SRC_URI = "http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${VERSIO file://system-pkcs11.txt \ file://nss-fix-nsinstall-build.patch \ file://0001-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch \ + file://no_unused_function_error.patch \ " SRC_URI[md5sum] = "e59dc16965ef7713669c628d2640ebd1"
Signature · 1 line
2.7.4
Perhaps its best to just use something like --disable-werror
Quoted 50 lines · Joe Slater
Allows qemumips64 nss to compile.
Signed-off-by Joe Slater <[email protected]>--- .../nss/nss/no_unused_function_error.patch | 18 ++++++++++++++++++ meta-oe/recipes-support/nss/nss_3.51.bb | 1 + 2 files changed, 19 insertions(+) create mode 100644 meta-oe/recipes-support/nss/nss/no_unused_function_error.patchmeta-oe/recipes-support/nss/nss/no_unused_function_error.patch new file +18
-0@@ -0,0 +1,18 @@ +nss: suppress unused-function compile error + +Upstream-Status: Inappropriate [workaround] + +Signed-off-by: Joe Slater <[email protected]> + + +--- a/nss/coreconf/Werror.mk ++++ b/nss/coreconf/Werror.mk +@@ -96,7 +96,7 @@ ifndef WARNING_CFLAGS + endif #ndef NSS_ENABLE_WERROR + + ifeq ($(NSS_ENABLE_WERROR),1) +- WARNING_CFLAGS += -Werror ++ WARNING_CFLAGS += -Werror -Wno-error=unused-function + else + # Old versions of gcc (< 4.8) don't support #pragma diagnostic in functions. + # Use this to disable use of that #pragma and the warnings it suppresses.meta-oe/recipes-support/nss/nss_3.51.bb +1
-1@@ -32,6 +32,7 @@ SRC_URI = "http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${VERSIO file://system-pkcs11.txt \ file://nss-fix-nsinstall-build.patch \ file://0001-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch \ + file://no_unused_function_error.patch \ " SRC_URI[md5sum] = "e59dc16965ef7713669c628d2640ebd1" --2.7.4