Date: Sun, 22 Jan 2017 08:35:12 +0000 (UTC) From: Jan Beich <jbeich@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r432098 - in head/editors: openoffice-4/files openoffice-devel/files Message-ID: <201701220835.v0M8ZCLX014168@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jbeich Date: Sun Jan 22 08:35:12 2017 New Revision: 432098 URL: https://svnweb.freebsd.org/changeset/ports/432098 Log: editors/openoffice-devel: unbreak with clang 4.0 main/desktop/source/app/officeipcthread.cxx:228:14: error: ordered comparison between pointer and zero ('rtlDigest' (aka 'void *') and 'int') if ( handle > 0 ) ~~~~~~ ^ ~ main/desktop/source/deployment/misc/dp_misc.cxx:106:16: error: ordered comparison between pointer and zero ('rtlDigest' (aka 'void *') and 'int') if (digest <= 0) { ~~~~~~ ^ ~ main/sd/source/ui/view/viewshe3.cxx:229:48: error: ordered comparison between pointer and zero ('SdPage *' and 'int') if (pDocument->GetSdPage(0, ePageKind) > 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ PR: 216206 Submitted by: pfg Obtained from: upstream Added: head/editors/openoffice-4/files/patch-clang40 (contents, props changed) head/editors/openoffice-devel/files/patch-clang40 (contents, props changed) Added: head/editors/openoffice-4/files/patch-clang40 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/openoffice-4/files/patch-clang40 Sun Jan 22 08:35:12 2017 (r432098) @@ -0,0 +1,39 @@ +Index: desktop/source/app/officeipcthread.cxx +=================================================================== +--- desktop/source/app/officeipcthread.cxx (revision 1779757) ++++ desktop/source/app/officeipcthread.cxx (revision 1779758) +@@ -225,7 +225,7 @@ String CreateMD5FromString( const OUString& aMsg ) + // BACK: Str "ababab....0f" Hexcode String + + rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmMD5 ); +- if ( handle > 0 ) ++ if ( handle != NULL ) + { + const sal_uInt8* pData = (const sal_uInt8*)aMsg.getStr(); + sal_uInt32 nSize = ( aMsg.getLength() * sizeof( sal_Unicode )); +Index: desktop/source/deployment/misc/dp_misc.cxx +=================================================================== +--- desktop/source/deployment/misc/dp_misc.cxx (revision 1779671) ++++ desktop/source/deployment/misc/dp_misc.cxx (revision 1779695) +@@ -103,7 +103,7 @@ const OUString OfficePipeId::operator () () + } + + rtlDigest digest = rtl_digest_create( rtl_Digest_AlgorithmMD5 ); +- if (digest <= 0) { ++ if (digest == NULL) { + throw RuntimeException( + OUSTR("cannot get digest rtl_Digest_AlgorithmMD5!"), 0 ); + } +Index: sd/source/ui/view/viewshe3.cxx +=================================================================== +--- sd/source/ui/view/viewshe3.cxx (revision 1779671) ++++ sd/source/ui/view/viewshe3.cxx (revision 1779695) +@@ -226,7 +226,7 @@ SdPage* ViewShell::CreateOrDuplicatePage ( + // When the given page is NULL then use the first page of the document. + SdPage* pTemplatePage = pPage; + if (pTemplatePage == NULL) +- if (pDocument->GetSdPage(0, ePageKind) > 0) ++ if (pDocument->GetSdPage(0, ePageKind) != NULL) + pTemplatePage = pDocument->GetSdPage(0, ePageKind); + if (pTemplatePage != NULL && pTemplatePage->TRG_HasMasterPage()) + aVisibleLayers = pTemplatePage->TRG_GetMasterPageVisibleLayers(); Added: head/editors/openoffice-devel/files/patch-clang40 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/openoffice-devel/files/patch-clang40 Sun Jan 22 08:35:12 2017 (r432098) @@ -0,0 +1,39 @@ +Index: desktop/source/app/officeipcthread.cxx +=================================================================== +--- desktop/source/app/officeipcthread.cxx (revision 1779757) ++++ desktop/source/app/officeipcthread.cxx (revision 1779758) +@@ -225,7 +225,7 @@ String CreateMD5FromString( const OUString& aMsg ) + // BACK: Str "ababab....0f" Hexcode String + + rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmMD5 ); +- if ( handle > 0 ) ++ if ( handle != NULL ) + { + const sal_uInt8* pData = (const sal_uInt8*)aMsg.getStr(); + sal_uInt32 nSize = ( aMsg.getLength() * sizeof( sal_Unicode )); +Index: desktop/source/deployment/misc/dp_misc.cxx +=================================================================== +--- desktop/source/deployment/misc/dp_misc.cxx (revision 1779671) ++++ desktop/source/deployment/misc/dp_misc.cxx (revision 1779695) +@@ -103,7 +103,7 @@ const OUString OfficePipeId::operator () () + } + + rtlDigest digest = rtl_digest_create( rtl_Digest_AlgorithmMD5 ); +- if (digest <= 0) { ++ if (digest == NULL) { + throw RuntimeException( + OUSTR("cannot get digest rtl_Digest_AlgorithmMD5!"), 0 ); + } +Index: sd/source/ui/view/viewshe3.cxx +=================================================================== +--- sd/source/ui/view/viewshe3.cxx (revision 1779671) ++++ sd/source/ui/view/viewshe3.cxx (revision 1779695) +@@ -226,7 +226,7 @@ SdPage* ViewShell::CreateOrDuplicatePage ( + // When the given page is NULL then use the first page of the document. + SdPage* pTemplatePage = pPage; + if (pTemplatePage == NULL) +- if (pDocument->GetSdPage(0, ePageKind) > 0) ++ if (pDocument->GetSdPage(0, ePageKind) != NULL) + pTemplatePage = pDocument->GetSdPage(0, ePageKind); + if (pTemplatePage != NULL && pTemplatePage->TRG_HasMasterPage()) + aVisibleLayers = pTemplatePage->TRG_GetMasterPageVisibleLayers();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701220835.v0M8ZCLX014168>