Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Feb 2017 05:26:23 +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: r432974 - in head/games/qtads: . files
Message-ID:  <201702010526.v115QNYR087356@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Wed Feb  1 05:26:22 2017
New Revision: 432974
URL: https://svnweb.freebsd.org/changeset/ports/432974

Log:
  games/qtads: unbreak with clang 4.0
  
  tads3/vmtz.cpp:1985:30: error: ordered comparison between pointer and zero ('vmtz_trans *' and 'int')
              result->set(tcur > 0 ? tcur - 1 : tcur);
                          ~~~~ ^ ~
  
  PR:		216357
  Reported by:	antoine (via exp-run)
  Submitted by:	kaiwang27@gmail.com (maintainer)

Added:
  head/games/qtads/files/patch-tads3_vmtz.cpp   (contents, props changed)
Modified:
  head/games/qtads/Makefile   (contents, props changed)

Modified: head/games/qtads/Makefile
==============================================================================
--- head/games/qtads/Makefile	Wed Feb  1 05:26:09 2017	(r432973)
+++ head/games/qtads/Makefile	Wed Feb  1 05:26:22 2017	(r432974)
@@ -3,7 +3,7 @@
 
 PORTNAME=	qtads
 PORTVERSION=	2.1.6
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	games
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-2.x/${PORTVERSION}
 

Added: head/games/qtads/files/patch-tads3_vmtz.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/qtads/files/patch-tads3_vmtz.cpp	Wed Feb  1 05:26:22 2017	(r432974)
@@ -0,0 +1,11 @@
+--- tads3/vmtz.cpp.orig	2012-08-31 05:09:31 UTC
++++ tads3/vmtz.cpp
+@@ -1982,7 +1982,7 @@ void CVmTimeZone::query(vmtzquery *resul
+              *   the transition in terms of the local time that was in effect
+              *   up until that moment
+              */
+-            result->set(tcur > 0 ? tcur - 1 : tcur);
++            result->set(cur > 0 ? tcur - 1 : tcur);
+             return;
+         }
+     }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702010526.v115QNYR087356>