This is an automated email from the ASF dual-hosted git repository.

wohali pushed a commit to branch 3.0.x
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 14e3cd43fbaab93d65639c73c621125212192707
Author: Joan Touzet <[email protected]>
AuthorDate: Tue Apr 28 13:46:14 2020 -0400

    Suppress offsetof gcc warnings for SM60
    
    Mozilla did this years ago:
    
    https://hg.mozilla.org/mozilla-central/rev/41d9d32ab5a7
---
 src/couch/rebar.config.script | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/couch/rebar.config.script b/src/couch/rebar.config.script
index 91e24d9..39304cc 100644
--- a/src/couch/rebar.config.script
+++ b/src/couch/rebar.config.script
@@ -120,7 +120,7 @@ end,
         };
     {unix, _} when SMVsn == "60" ->
         {
-            "-DXP_UNIX -I/usr/include/mozjs-60 -I/usr/local/include/mozjs-60 
-std=c++14",
+            "-DXP_UNIX -I/usr/include/mozjs-60 -I/usr/local/include/mozjs-60 
-std=c++14 -Wno-invalid-offsetof",
             "-L/usr/local/lib -std=c++14 -lmozjs-60 -lm"
         }
 end.

Reply via email to