mozjs: Treat warning as non-fatal.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
Willy Sudiarto Raharjo 2019-12-26 16:31:12 +07:00
parent 90c4d19aed
commit 7e91228ccc
No known key found for this signature in database
GPG key ID: 887B8374D7333381
2 changed files with 13 additions and 0 deletions

View file

@ -92,6 +92,7 @@ patch -p1 < $CWD/mozjs52-fix-soname.patch
patch -p1 < $CWD/mozjs52-copy-headers.patch
patch -p1 < $CWD/mozjs52-disable-mozglue.patch
patch -Np1 < $CWD/mozjs52-include-configure-script.patch
patch -p1 < $CWD/no-error.diff
touch js/src/configure
cd js/src

12
mozjs/no-error.diff Normal file
View file

@ -0,0 +1,12 @@
diff -u -r firefox-52.9.0esr/js/src/jsapi-tests/moz.build firefox-52.9.0esr-noerror/js/src/jsapi-tests/moz.build
--- firefox-52.9.0esr/js/src/jsapi-tests/moz.build 2017-04-11 02:13:16.000000000 +0000
+++ firefox-52.9.0esr-noerror/js/src/jsapi-tests/moz.build 2019-06-20 20:10:31.092230735 +0000
@@ -147,7 +147,7 @@
OS_LIBS += CONFIG['MOZ_ZLIB_LIBS']
if CONFIG['GNU_CXX']:
- CXXFLAGS += ['-Wno-shadow', '-Werror=format']
+ CXXFLAGS += ['-Wno-shadow']
# This is intended as a temporary workaround to enable VS2015.
if CONFIG['_MSC_VER']: