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:17:06 UTC

[couchdb] branch master updated: Suppress offsetof gcc warnings for SM60

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 607f4c1  Suppress offsetof gcc warnings for SM60
607f4c1 is described below

commit 607f4c1f1095101980fe764550e7e3ca2b8f39b8
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" ->