[Libreoffice-commits] core.git: 3 commits - sal/osl sfx2/source tools/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Thu Jul 18 19:18:14 UTC 2019


 sal/osl/unx/pipe.cxx              |    2 +-
 sfx2/source/safemode/safemode.cxx |    2 +-
 tools/source/stream/strmunx.cxx   |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit fbaf0ccbf43ec3ed320c56a2bff4d7e8e59fb132
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Jul 18 10:20:06 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Jul 18 21:16:52 2019 +0200

    cid#1448224 Unchecked return value
    
    Change-Id: Ie13b8b8f865e44f3746fdf79bf0b1b2cec2aba1d
    Reviewed-on: https://gerrit.libreoffice.org/75845
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/tools/source/stream/strmunx.cxx b/tools/source/stream/strmunx.cxx
index 4ba6da6dfe1b..152ed9b10274 100644
--- a/tools/source/stream/strmunx.cxx
+++ b/tools/source/stream/strmunx.cxx
@@ -63,7 +63,7 @@ InternalStreamLock::InternalStreamLock(
         m_nEndPos( nEnd ),
         m_pStream( pStream )
 {
-    osl::DirectoryItem::get( m_pStream->GetFileName(), m_aItem );
+    (void)osl::DirectoryItem::get( m_pStream->GetFileName(), m_aItem );
 #if OSL_DEBUG_LEVEL > 1
     OString aFileName(OUStringToOString(m_pStream->GetFileName(),
                                                   osl_getThreadTextEncoding()));
commit 034da04b16292a8a967340499832af23ec479bdc
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Jul 18 10:32:19 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Jul 18 21:16:19 2019 +0200

    cid#1448294 Unchecked return value
    
    Change-Id: Iee0153a00df72cf9353d2e40ff02f81f96522afe
    Reviewed-on: https://gerrit.libreoffice.org/75873
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sfx2/source/safemode/safemode.cxx b/sfx2/source/safemode/safemode.cxx
index 6d8dcf981a4d..0b7b64446bf9 100644
--- a/sfx2/source/safemode/safemode.cxx
+++ b/sfx2/source/safemode/safemode.cxx
@@ -75,7 +75,7 @@ OUString SafeMode::getFilePath(const OUString& sFilename)
 
     OUString aProfilePath;
     FileBase::getSystemPathFromFileURL(url, aProfilePath);
-    FileBase::getAbsoluteFileURL(url, sFilename, aProfilePath);
+    (void)FileBase::getAbsoluteFileURL(url, sFilename, aProfilePath);
     return aProfilePath;
 }
 
commit 02b42f2825693454a4154d0e17a1dbcd3b4a66c6
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Jul 18 10:31:34 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Jul 18 21:16:01 2019 +0200

    cid#1448288 Unchecked return value from library
    
    Change-Id: Id1b8044126e65e67b2496cf7a4eb86b54ba6c1df
    Reviewed-on: https://gerrit.libreoffice.org/75872
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sal/osl/unx/pipe.cxx b/sal/osl/unx/pipe.cxx
index f9037a14e4a7..e9888e577ec5 100644
--- a/sal/osl/unx/pipe.cxx
+++ b/sal/osl/unx/pipe.cxx
@@ -246,7 +246,7 @@ static oslPipe osl_psz_createPipe(const sal_Char *pszPipeName, oslPipeOptions Op
             depends on umask */
 
         if (!Security)
-            chmod(name.getStr(),S_IRWXU | S_IRWXG |S_IRWXO);
+            (void)chmod(name.getStr(),S_IRWXU | S_IRWXG |S_IRWXO);
 
         strcpy(pPipe->m_Name, name.getStr()); // safe, see check above
 


More information about the Libreoffice-commits mailing list