Date: Sun, 9 Sep 2018 07:24:48 +0000 (UTC) From: Tobias Kortkamp <tobik@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r479277 - in head/devel/rudeconfig: . files Message-ID: <201809090724.w897Om9E019221@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tobik Date: Sun Sep 9 07:24:48 2018 New Revision: 479277 URL: https://svnweb.freebsd.org/changeset/ports/479277 Log: devel/rudeconfig: Fix build with Clang 6 src/Base64Encoder.cpp:170:25: error: cast from pointer to smaller type 'char' loses information retval[outlength]=(char) NULL; ^~~~~~~~~~~ http://beefy12.nyi.freebsd.org/data/head-amd64-default/p479076_s338486/logs/errors/rudeconfig-5.0.5_2.log - Make sure all files use Unix line endings PR: 230920 Submitted by: tobik Approved by: lowmaster@web.de (maintainer timeout, 2 weeks) Added: head/devel/rudeconfig/files/ head/devel/rudeconfig/files/patch-src_Base64Encoder.cpp (contents, props changed) Modified: head/devel/rudeconfig/Makefile Modified: head/devel/rudeconfig/Makefile ============================================================================== --- head/devel/rudeconfig/Makefile Sun Sep 9 07:18:37 2018 (r479276) +++ head/devel/rudeconfig/Makefile Sun Sep 9 07:24:48 2018 (r479277) @@ -3,14 +3,15 @@ PORTNAME= rudeconfig PORTVERSION= 5.0.5 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= devel MASTER_SITES= http://www.rudeserver.com/config/download/ MAINTAINER= lowmaster@web.de COMMENT= Library for handling configuration files, written in C++ -USES= libtool +USES= dos2unix libtool +DOS2UNIX_GLOB= * GNU_CONFIGURE= yes USE_LDCONFIG= yes Added: head/devel/rudeconfig/files/patch-src_Base64Encoder.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/rudeconfig/files/patch-src_Base64Encoder.cpp Sun Sep 9 07:24:48 2018 (r479277) @@ -0,0 +1,15 @@ +src/Base64Encoder.cpp:170:25: error: cast from pointer to smaller type 'char' loses information + retval[outlength]=(char) NULL; + ^~~~~~~~~~~ + +--- src/Base64Encoder.cpp.orig 2018-08-26 19:38:04 UTC ++++ src/Base64Encoder.cpp +@@ -167,7 +167,7 @@ char * Base64Encoder::encode(const char *data, int dat + linelength=0; + } + }; +- retval[outlength]=(char) NULL; ++ retval[outlength]='\0'; + return retval; + } +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809090724.w897Om9E019221>