From owner-svn-ports-all@freebsd.org Fri Aug 28 22:07:48 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 48A0F3C3D4D; Fri, 28 Aug 2020 22:07:48 +0000 (UTC) (envelope-from zeising@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BdYch1G69z4Vvs; Fri, 28 Aug 2020 22:07:48 +0000 (UTC) (envelope-from zeising@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 0E7BF1BAF2; Fri, 28 Aug 2020 22:07:48 +0000 (UTC) (envelope-from zeising@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 07SM7lGj070368; Fri, 28 Aug 2020 22:07:47 GMT (envelope-from zeising@FreeBSD.org) Received: (from zeising@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 07SM7lbd070367; Fri, 28 Aug 2020 22:07:47 GMT (envelope-from zeising@FreeBSD.org) Message-Id: <202008282207.07SM7lbd070367@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: zeising set sender to zeising@FreeBSD.org using -f From: Niclas Zeising Date: Fri, 28 Aug 2020 22:07:47 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r546839 - head/textproc/zorba/files X-SVN-Group: ports-head X-SVN-Commit-Author: zeising X-SVN-Commit-Paths: head/textproc/zorba/files X-SVN-Commit-Revision: 546839 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.33 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: Fri, 28 Aug 2020 22:07:48 -0000 Author: zeising Date: Fri Aug 28 22:07:47 2020 New Revision: 546839 URL: https://svnweb.freebsd.org/changeset/ports/546839 Log: textproc/zorba: Fix build with llvm11 Fix the build of textproc/zorba with llvm11. NULL isn't a boolean, fix this by returning false instead of NULL from bool functions. MFH: 2020Q3 (implicit, llvm11 fixes) Added: head/textproc/zorba/files/patch-src_types_casting.cpp (contents, props changed) Added: head/textproc/zorba/files/patch-src_types_casting.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/zorba/files/patch-src_types_casting.cpp Fri Aug 28 22:07:47 2020 (r546839) @@ -0,0 +1,269 @@ +--- src/types/casting.cpp.orig 2020-08-28 21:44:53 UTC ++++ src/types/casting.cpp +@@ -199,7 +199,7 @@ T1_TO_T2(str, flt) + catch (std::invalid_argument const&) + { + throwTypeException(err::FORG0001, aErrorInfo); +- return NULL; ++ return false; + } + catch ( std::range_error const& ) + { +@@ -218,7 +218,7 @@ T1_TO_T2(str, dbl) + catch (std::invalid_argument const& ) + { + throwTypeException(err::FORG0001, aErrorInfo); +- return NULL; ++ return false; + } + catch (std::range_error const& ) + { +@@ -237,7 +237,7 @@ T1_TO_T2(str, dec) + catch ( std::exception const& ) + { + throwTypeException( err::FORG0001, aErrorInfo ); +- return NULL; ++ return false; + } + } + +@@ -252,12 +252,12 @@ T1_TO_T2(str, int) + catch ( std::invalid_argument const& ) + { + throwTypeException( err::FORG0001, aErrorInfo ); +- return NULL; ++ return false; + } + catch ( std::range_error const& ) + { + throwTypeException( err::FOAR0002, aErrorInfo ); +- return NULL; ++ return false; + } + } + +@@ -271,7 +271,7 @@ T1_TO_T2(str, dur) + return aFactory->createDuration(result, &d); + + throwTypeException(err::FORG0001, aErrorInfo); +- return NULL; ++ return false; + } + + +@@ -284,7 +284,7 @@ T1_TO_T2(str, yMD) + return aFactory->createYearMonthDuration(result, &d); + + throwTypeException( err::FORG0001, aErrorInfo ); +- return NULL; ++ return false; + } + + +@@ -297,7 +297,7 @@ T1_TO_T2(str, dTD) + return aFactory->createDayTimeDuration(result, &d); + + throwTypeException( err::FORG0001, aErrorInfo ); +- return NULL; ++ return false; + } + + +@@ -308,7 +308,7 @@ T1_TO_T2(str, dT) + return aFactory->createDateTime(result, &dt); + + throwTypeException( err::FORG0001, aErrorInfo ); +- return NULL; ++ return false; + } + + +@@ -319,7 +319,7 @@ T1_TO_T2(str, tim) + return aFactory->createTime(result, &t); + + throwTypeException( err::FORG0001, aErrorInfo ); +- return NULL; ++ return false; + } + + +@@ -330,7 +330,7 @@ T1_TO_T2(str, dat) + return aFactory->createDate(result, &d); + + throwTypeException( err::FORG0001, aErrorInfo ); +- return NULL; ++ return false; + } + + +@@ -341,7 +341,7 @@ T1_TO_T2(str, gYM) + return aFactory->createGYearMonth(result, &ym); + + throwTypeException( err::FORG0001, aErrorInfo ); +- return NULL; ++ return false; + } + + +@@ -352,7 +352,7 @@ T1_TO_T2(str, gYr) + return aFactory->createGYear(result, &y); + + throwTypeException( err::FORG0001, aErrorInfo ); +- return NULL; ++ return false; + } + + +@@ -363,7 +363,7 @@ T1_TO_T2(str, gMD) + return aFactory->createGMonthDay(result, &md); + + throwTypeException( err::FORG0001, aErrorInfo ); +- return NULL; ++ return false; + } + + +@@ -374,7 +374,7 @@ T1_TO_T2(str, gDay) + return aFactory->createGDay(result, &d); + + throwTypeException( err::FORG0001, aErrorInfo ); +- return NULL; ++ return false; + } + + +@@ -385,7 +385,7 @@ T1_TO_T2(str, gMon) + return aFactory->createGMonth(result, &m); + + throwTypeException( err::FORG0001, aErrorInfo ); +- return NULL; ++ return false; + } + + +@@ -423,7 +423,7 @@ T1_TO_T2(str, bool) + else + { + throwTypeException( err::FORG0001, aErrorInfo ); +- return NULL; ++ return false; + } + + pos = str - strval.c_str(); +@@ -443,7 +443,7 @@ T1_TO_T2(str, b64) + return aFactory->createBase64Binary(result, n); + + throwTypeException( err::FORG0001, aErrorInfo ); +- return NULL; ++ return false; + } + + +@@ -454,7 +454,7 @@ T1_TO_T2(str, hxB) + return aFactory->createHexBinary(result, n); + + throwTypeException( err::FORG0001, aErrorInfo ); +- return NULL; ++ return false; + } + + +@@ -736,7 +736,7 @@ T1_TO_T2(flt, dec) + catch ( std::exception const& /*e*/ ) + { + throwTypeException( err::FOCA0002, aErrorInfo ); +- return NULL; ++ return false; + } + } + +@@ -750,7 +750,7 @@ T1_TO_T2(flt, int) + catch ( std::exception const& ) + { + throwTypeException( err::FOCA0002, aErrorInfo ); +- return NULL; ++ return false; + } + } + +@@ -792,7 +792,7 @@ T1_TO_T2(dbl, dec) + catch ( std::exception const& ) + { + throwTypeException(err::FOCA0002, aErrorInfo); +- return NULL; ++ return false; + } + } + +@@ -806,7 +806,7 @@ T1_TO_T2(dbl, int) + catch ( std::exception const& ) + { + throwTypeException( err::FOCA0002, aErrorInfo ); +- return NULL; ++ return false; + } + } + +@@ -1409,7 +1409,7 @@ T1_TO_T2(flt, uint) + catch ( std::exception const& ) + { + throwTypeException( err::FOCA0002, aErrorInfo ); +- return NULL; ++ return false; + } + } + +@@ -1424,7 +1424,7 @@ T1_TO_T2(int, uint) + catch ( std::exception const& ) + { + throwTypeException( err::FOCA0002, aErrorInfo ); +- return NULL; ++ return false; + } + } + +@@ -1439,7 +1439,7 @@ T1_TO_T2(uint, int) + catch ( std::exception const& ) + { + throwTypeException( err::FOCA0002, aErrorInfo ); +- return NULL; ++ return false; + } + } + +@@ -1454,7 +1454,7 @@ T1_TO_T2(dbl, uint) + catch ( std::exception const& ) + { + throwTypeException( err::FOCA0002, aErrorInfo ); +- return NULL; ++ return false; + } + } + +@@ -1491,7 +1491,7 @@ T1_TO_T2(str, uint) + catch ( std::range_error const& ) { + throwTypeException( err::FOCA0002, aErrorInfo ); + } +- return NULL; ++ return false; + } + + T1_TO_T2(NUL, str) +@@ -1588,7 +1588,7 @@ bool str_down( + } + + throwTypeException( err::FORG0001, aErrorInfo ); +- return NULL; ++ return false; + } + + +@@ -1763,7 +1763,7 @@ bool int_down( + } + + throwTypeException( err::FORG0001, aErrorInfo ); +- return NULL; ++ return false; + } + +