From owner-svn-ports-head@freebsd.org Mon Jan 8 17:07:02 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F04B8E781FD; Mon, 8 Jan 2018 17:07:01 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 70EFE2ECB; Mon, 8 Jan 2018 17:07:01 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8C4452755; Mon, 8 Jan 2018 17:07:00 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w08H703v090561; Mon, 8 Jan 2018 17:07:00 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w08H70cB090560; Mon, 8 Jan 2018 17:07:00 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201801081707.w08H70cB090560@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Mon, 8 Jan 2018 17:07:00 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r458454 - head/lang/cjs/files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: head/lang/cjs/files X-SVN-Commit-Revision: 458454 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jan 2018 17:07:02 -0000 Author: jbeich Date: Mon Jan 8 17:07:00 2018 New Revision: 458454 URL: https://svnweb.freebsd.org/changeset/ports/458454 Log: lang/cjs: unbreak build with Clang 6 (C++14 by default) gi/boxed.cpp:552:16: error: cannot initialize return object of type 'GIFieldInfo *' (aka '_GIBaseInfoStub *') with an rvalue of type 'int' return JS_FALSE; ^~~~~~~~ gi/ns.cpp:188:16: error: cannot initialize return object of type 'JSObject *' with an rvalue of type 'int' return JS_FALSE; ^~~~~~~~ gi/repo.cpp:312:16: error: cannot initialize return object of type 'JSObject *' with an rvalue of type 'int' return JS_FALSE; ^~~~~~~~ /usr/local/include/mozjs-24/jstypes.h:194:18: note: expanded from macro 'JS_FALSE' #define JS_FALSE (int)0 ^~~~~~ Reported by: antoine (via bug 224669) Added: head/lang/cjs/files/ head/lang/cjs/files/patch-c++11 (contents, props changed) Added: head/lang/cjs/files/patch-c++11 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/cjs/files/patch-c++11 Mon Jan 8 17:07:00 2018 (r458454) @@ -0,0 +1,46 @@ +gi/boxed.cpp:552:16: error: cannot initialize return object of type 'GIFieldInfo *' (aka '_GIBaseInfoStub *') with an rvalue of type 'int' + return JS_FALSE; + ^~~~~~~~ +gi/ns.cpp:188:16: error: cannot initialize return object of type 'JSObject *' with an rvalue of type 'int' + return JS_FALSE; + ^~~~~~~~ +gi/repo.cpp:312:16: error: cannot initialize return object of type 'JSObject *' with an rvalue of type 'int' + return JS_FALSE; + ^~~~~~~~ +/usr/local/include/mozjs-24/jstypes.h:194:18: note: expanded from macro 'JS_FALSE' +#define JS_FALSE (int)0 + ^~~~~~ + +--- gi/boxed.cpp.orig 2014-11-23 11:02:30 UTC ++++ gi/boxed.cpp +@@ -549,7 +549,7 @@ get_field_info (JSContext *context, + jsval id_val; + + if (!JS_IdToValue(context, id, &id_val)) +- return JS_FALSE; ++ return NULL; + + if (!JSVAL_IS_INT (id_val)) { + gjs_throw(context, "Field index for %s is not an integer", +--- gi/ns.cpp.orig 2014-11-23 11:02:30 UTC ++++ gi/ns.cpp +@@ -185,7 +185,7 @@ ns_new(JSContext *context, + global = gjs_get_import_global(context); + + if (!JS_HasProperty(context, global, gjs_ns_class.name, &found)) +- return JS_FALSE; ++ return NULL; + if (!found) { + JSObject *prototype; + prototype = JS_InitClass(context, global, +--- gi/repo.cpp.orig 2014-11-23 11:02:30 UTC ++++ gi/repo.cpp +@@ -309,7 +309,7 @@ repo_new(JSContext *context) + repo = JS_NewObject(context, &gjs_repo_class, NULL, global); + if (repo == NULL) { + gjs_throw(context, "No memory to create repo object"); +- return JS_FALSE; ++ return NULL; + } + + priv = g_slice_new0(Repo);