From owner-svn-ports-all@freebsd.org Sat Aug 25 01:24:41 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 86D65109ADC7; Sat, 25 Aug 2018 01:24:41 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2B32880881; Sat, 25 Aug 2018 01:24:41 +0000 (UTC) (envelope-from tobik@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0817F1904A; Sat, 25 Aug 2018 01:24:41 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w7P1OeHd033480; Sat, 25 Aug 2018 01:24:40 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w7P1Oesf033479; Sat, 25 Aug 2018 01:24:40 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201808250124.w7P1Oesf033479@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Sat, 25 Aug 2018 01:24:40 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r477989 - head/emulators/quasi88/files X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: head/emulators/quasi88/files X-SVN-Commit-Revision: 477989 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Aug 2018 01:24:41 -0000 Author: tobik Date: Sat Aug 25 01:24:40 2018 New Revision: 477989 URL: https://svnweb.freebsd.org/changeset/ports/477989 Log: emulators/quasi88: Fix build with Clang 6 src/fmgen/psg.cpp:121:37: error: constant expression evaluates to -1 which cannot be narrowed to type 'uint8' (aka 'unsigned char') [-Wc++11-narrowing] static uint8 table3[4] = { 0, 1, -1, 0 }; ^~ http://beefy11.nyi.freebsd.org/data/head-i386-default/p477468_s337991/logs/quasi88-0.6.4.log PR: 230869 Submitted by: 1wkmmr@gmail.com Added: head/emulators/quasi88/files/ head/emulators/quasi88/files/patch-src_fmgen_psg.cpp (contents, props changed) Added: head/emulators/quasi88/files/patch-src_fmgen_psg.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/quasi88/files/patch-src_fmgen_psg.cpp Sat Aug 25 01:24:40 2018 (r477989) @@ -0,0 +1,15 @@ +src/fmgen/psg.cpp:121:37: error: constant expression evaluates to -1 which cannot be narrowed to type 'uint8' (aka 'unsigned char') [-Wc++11-narrowing] + static uint8 table3[4] = { 0, 1, -1, 0 }; + ^~ + +--- src/fmgen/psg.cpp.orig 2003-09-05 15:06:43 UTC ++++ src/fmgen/psg.cpp +@@ -118,7 +118,7 @@ void PSG::MakeEnvelopTable() + 2,2, 2,0, 2,1, 2,3, 1,1, 1,3, 1,2, 1,0, + }; + static uint8 table2[4] = { 0, 0, 31, 31 }; +- static uint8 table3[4] = { 0, 1, -1, 0 }; ++ static uint8 table3[4] = { 0, 1, 255, 0 }; + + uint* ptr = enveloptable[0]; +