From owner-svn-ports-all@freebsd.org Sun Jul 29 12:01:14 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 8219B1054FE2; Sun, 29 Jul 2018 12:01:14 +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 389057DF6F; Sun, 29 Jul 2018 12:01:14 +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 1B44315782; Sun, 29 Jul 2018 12:01:14 +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 w6TC1DfG011924; Sun, 29 Jul 2018 12:01:13 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w6TC1DXH011923; Sun, 29 Jul 2018 12:01:13 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201807291201.w6TC1DXH011923@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Sun, 29 Jul 2018 12:01:13 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r475650 - head/comms/xmorse/files X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: head/comms/xmorse/files X-SVN-Commit-Revision: 475650 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: Sun, 29 Jul 2018 12:01:14 -0000 Author: tobik Date: Sun Jul 29 12:01:13 2018 New Revision: 475650 URL: https://svnweb.freebsd.org/changeset/ports/475650 Log: comms/xmorse: Fix build with Clang 6 Codebox.cxx:122:16: error: non-constant-expression cannot be narrowed from type 'int' to 'char' in initializer list [-Wc++11-narrowing] char s[] = { c, '\0' }; // A 1-char string version of c. ^ http://beefy12.nyi.freebsd.org/data/head-amd64-default/p475044_s336572/logs/xmorse-20041125_10.log Added: head/comms/xmorse/files/patch-Codebox.cxx (contents, props changed) Added: head/comms/xmorse/files/patch-Codebox.cxx ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/xmorse/files/patch-Codebox.cxx Sun Jul 29 12:01:13 2018 (r475650) @@ -0,0 +1,15 @@ +Codebox.cxx:122:16: error: non-constant-expression cannot be narrowed from type 'int' to 'char' in initializer list [-Wc++11-narrowing] + char s[] = { c, '\0' }; // A 1-char string version of c. + ^ + +--- Codebox.cxx.orig 2018-07-29 11:57:10 UTC ++++ Codebox.cxx +@@ -119,7 +119,7 @@ int Codebox::handle(int event) { // Called by FLTK whe + * moved to the end of the line, and the character is inserted there. + */ + void Codebox::append(int c) { // Append character to displayed line +- char s[] = { c, '\0' }; // A 1-char string version of c. ++ char s[] = { static_cast(c), '\0' }; // A 1-char string version of c. + if (size() >= maximum_size()) // If no room for character, + cut(0,1); // discard one off left side + position(maximum_size()); // Return to right end of buffer