You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wo...@apache.org on 2020/04/28 18:58:43 UTC

[couchdb] 01/02: Suppress offsetof gcc warnings for SM60

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

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

commit 42087914def27048828b3a1edd12fdec9c5ea9f6
Author: Joan Touzet <jo...@atypical.net>
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 ad897e8..320584b 100644
--- a/src/couch/rebar.config.script
+++ b/src/couch/rebar.config.script
@@ -122,7 +122,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"
         };
     {unix, _} when SMVsn == "68" ->