[Libreoffice-commits] core.git: sw/source

Caolán McNamara caolanm at redhat.com
Sat May 12 11:32:58 UTC 2018


 sw/source/filter/ww8/ww8par2.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ce8b63ed20aa9ce8a36c3b2c02a4f74459e91229
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri May 11 21:04:54 2018 +0100

    silence Werror=class-memaccess
    
    Change-Id: I2deac7b7df8d6b099a52b4e9e82ee0dd0c390c16
    Reviewed-on: https://gerrit.libreoffice.org/54149
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx
index af15642868bc..54704142bd4e 100644
--- a/sw/source/filter/ww8/ww8par2.cxx
+++ b/sw/source/filter/ww8/ww8par2.cxx
@@ -1580,7 +1580,7 @@ void WW8TabBandDesc::ReadNewShd(const sal_uInt8* pS, bool bVer67)
 
 void WW8TabBandDesc::setcelldefaults(WW8_TCell *pCells, short nCols)
 {
-    memset( pCells, 0, nCols * sizeof( WW8_TCell ) );
+    memset(static_cast<void*>(pCells), 0, nCols * sizeof(WW8_TCell));
 }
 
 namespace


More information about the Libreoffice-commits mailing list