Date: Thu, 2 Feb 2017 09:39:25 +0000 (UTC) From: Jan Beich <jbeich@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r433134 - in head/emulators/mame: . files Message-ID: <201702020939.v129dP7I099589@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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';
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702020939.v129dP7I099589>