From owner-svn-ports-head@freebsd.org Fri Jan 5 11:57:39 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 178C8E857CB; Fri, 5 Jan 2018 11:57:39 +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 E379864E68; Fri, 5 Jan 2018 11:57:38 +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 w05BvbTt052586; Fri, 5 Jan 2018 11:57:37 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w05BvbsE052585; Fri, 5 Jan 2018 11:57:37 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201801051157.w05BvbsE052585@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Fri, 5 Jan 2018 11:57:37 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r458131 - head/multimedia/smpeg2 X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: head/multimedia/smpeg2 X-SVN-Commit-Revision: 458131 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: Fri, 05 Jan 2018 11:57:39 -0000 Author: jbeich Date: Fri Jan 5 11:57:37 2018 New Revision: 458131 URL: https://svnweb.freebsd.org/changeset/ports/458131 Log: multimedia/smpeg2: unbreak build with Clang 6 (C++14 by default) audio/hufftable.cpp:553:8: error: constant expression evaluates to -1 which cannot be narrowed to type 'unsigned int' [-Wc++11-narrowing] { 0, 0-1, 0-1, 0, 0, htd33}, ^~~ audio/hufftable.cpp:553:8: note: insert an explicit cast to silence this issue { 0, 0-1, 0-1, 0, 0, htd33}, ^~~ static_cast( ) audio/hufftable.cpp:553:13: error: constant expression evaluates to -1 which cannot be narrowed to type 'unsigned int' [-Wc++11-narrowing] { 0, 0-1, 0-1, 0, 0, htd33}, ^~~ audio/hufftable.cpp:553:13: note: insert an explicit cast to silence this issue { 0, 0-1, 0-1, 0, 0, htd33}, ^~~ static_cast( ) audio/hufftable.cpp:557:8: error: constant expression evaluates to -1 which cannot be narrowed to type 'unsigned int' [-Wc++11-narrowing] { 4, 0-1, 0-1, 0, 0, htd33}, ^~~ audio/hufftable.cpp:557:8: note: insert an explicit cast to silence this issue { 4, 0-1, 0-1, 0, 0, htd33}, ^~~ static_cast( ) audio/hufftable.cpp:557:13: error: constant expression evaluates to -1 which cannot be narrowed to type 'unsigned int' [-Wc++11-narrowing] { 4, 0-1, 0-1, 0, 0, htd33}, ^~~ audio/hufftable.cpp:557:13: note: insert an explicit cast to silence this issue { 4, 0-1, 0-1, 0, 0, htd33}, ^~~ static_cast( ) audio/hufftable.cpp:567:8: error: constant expression evaluates to -1 which cannot be narrowed to type 'unsigned int' [-Wc++11-narrowing] {14, 0-1, 0-1, 0, 0, htd33}, ^~~ audio/hufftable.cpp:567:8: note: insert an explicit cast to silence this issue {14, 0-1, 0-1, 0, 0, htd33}, ^~~ static_cast( ) audio/hufftable.cpp:567:13: error: constant expression evaluates to -1 which cannot be narrowed to type 'unsigned int' [-Wc++11-narrowing] {14, 0-1, 0-1, 0, 0, htd33}, ^~~ audio/hufftable.cpp:567:13: note: insert an explicit cast to silence this issue {14, 0-1, 0-1, 0, 0, htd33}, ^~~ static_cast( ) Reported by: antoine (via bug 224669) Obtained from: r458130 Modified: head/multimedia/smpeg2/Makefile (contents, props changed) Modified: head/multimedia/smpeg2/Makefile ============================================================================== --- head/multimedia/smpeg2/Makefile Fri Jan 5 11:56:53 2018 (r458130) +++ head/multimedia/smpeg2/Makefile Fri Jan 5 11:57:37 2018 (r458131) @@ -16,7 +16,8 @@ LICENSE_COMB= multi GNU_CONFIGURE= yes INSTALL_TARGET= install-strip -USES= libtool +CFLAGS+= ${COMPILER_FEATURES:Mc++11:C/.+/-Wno-error=narrowing/} +USES= compiler:features libtool USE_SDL= sdl2 USE_LDCONFIG= yes