svn commit: r458361 - in head/net-p2p/libktorrent: . files

Tobias C. Berner tcberner at FreeBSD.org
Sun Jan 7 17:07:49 UTC 2018


Author: tcberner
Date: Sun Jan  7 17:07:47 2018
New Revision: 458361
URL: https://svnweb.freebsd.org/changeset/ports/458361

Log:
  net-p2p/libktorrent, fix with clang6
  
  PR:		224945
  Submitted by:	rakuco

Added:
  head/net-p2p/libktorrent/files/
  head/net-p2p/libktorrent/files/patch-src_diskio_chunkmanager.cpp   (contents, props changed)
Modified:
  head/net-p2p/libktorrent/Makefile

Modified: head/net-p2p/libktorrent/Makefile
==============================================================================
--- head/net-p2p/libktorrent/Makefile	Sun Jan  7 17:02:46 2018	(r458360)
+++ head/net-p2p/libktorrent/Makefile	Sun Jan  7 17:07:47 2018	(r458361)
@@ -2,7 +2,7 @@
 
 PORTNAME=	libktorrent
 DISTVERSION=	1.3.1
-PORTREVISION=	14
+PORTREVISION=	15
 CATEGORIES=	net-p2p kde
 MASTER_SITES=	http://ktorrent.org/downloads/${DISTVERSION:C,^1,4,:C,-.*,,}/
 

Added: head/net-p2p/libktorrent/files/patch-src_diskio_chunkmanager.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-p2p/libktorrent/files/patch-src_diskio_chunkmanager.cpp	Sun Jan  7 17:07:47 2018	(r458361)
@@ -0,0 +1,15 @@
+error: case value evaluates to -1, which cannot be narrowed to type 'unsigned int'
+    [-Wc++11-narrowing]
+                                case -1:
+
+--- src/diskio/chunkmanager.cpp.orig	2018-01-07 15:40:05 UTC
++++ src/diskio/chunkmanager.cpp
+@@ -528,7 +528,7 @@ namespace bt
+ 					tf.setPriority(EXCLUDED);
+ 					break;
+ 				case ONLY_SEED_PRIORITY:
+-				case -1:
++				case static_cast<Uint32>(-1):
+ 					tf.setPriority(ONLY_SEED_PRIORITY);
+ 					break;
+ 				default:


More information about the svn-ports-all mailing list