From owner-svn-ports-head@freebsd.org Thu Feb 2 09:39:26 2017 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 85F5ACCA5CB; Thu, 2 Feb 2017 09:39:26 +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 mx1.freebsd.org (Postfix) with ESMTPS id 52C856D0; Thu, 2 Feb 2017 09:39:26 +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 v129dPIS099591; Thu, 2 Feb 2017 09:39:25 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v129dP7I099589; Thu, 2 Feb 2017 09:39:25 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201702020939.v129dP7I099589@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Thu, 2 Feb 2017 09:39:25 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r433134 - in head/emulators/mame: . files X-SVN-Group: ports-head 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.23 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: Thu, 02 Feb 2017 09:39:26 -0000 Author: jbeich Date: Thu Feb 2 09:39:25 2017 New Revision: 433134 URL: https://svnweb.freebsd.org/changeset/ports/433134 Log: emulators/mame: unbreak with clang 4.0 ../../../../../src/emu/webengine.c:333:21: error: ordered comparison between pointer and zero ('int *' and 'int') if ((&data_length > 0) && (sizeof(file_name) > 0)) ~~~~~~~~~~~~ ^ ~ Reported by: antoine (via exp-run) Added: head/emulators/mame/files/patch-src_emu_webengine.c (contents, props changed) Modified: head/emulators/mame/Makefile (contents, props changed) Modified: head/emulators/mame/Makefile ============================================================================== --- head/emulators/mame/Makefile Thu Feb 2 09:25:46 2017 (r433133) +++ head/emulators/mame/Makefile Thu Feb 2 09:39:25 2017 (r433134) @@ -3,7 +3,7 @@ PORTNAME?= mame PORTVERSION= 0.166 -PORTREVISION?= 1 +PORTREVISION?= 2 CATEGORIES= emulators MAINTAINER= ports@FreeBSD.org Added: head/emulators/mame/files/patch-src_emu_webengine.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/mame/files/patch-src_emu_webengine.c Thu Feb 2 09:39:25 2017 (r433134) @@ -0,0 +1,11 @@ +--- src/emu/webengine.c.orig 2015-09-30 06:29:01 UTC ++++ src/emu/webengine.c +@@ -330,7 +330,7 @@ int web_engine::begin_request_handler(st + // That upload_data contains more than we need. It also has the headers. + // We'll need to strip it down to just what we want. + +- if ((&data_length > 0) && (sizeof(file_name) > 0)) ++ if ((data_length > 0) && (sizeof(file_name) > 0)) + { + // MSVC doesn't yet support variable-length arrays, so chop the string the old-fashioned way + upload_data[data_length] = '\0';