[Libreoffice-commits] .: Branch 'feature/gnumake2.1' - rsc/source tools/inc

Norbert Thiebaud nthiebaud at kemper.freedesktop.org
Fri Jan 14 16:23:56 PST 2011


 rsc/source/parser/rscdb.cxx |    6 ++++--
 tools/inc/tools/resid.hxx   |    1 +
 2 files changed, 5 insertions(+), 2 deletions(-)

New commits:
commit 2dea1c65f3d63abd6e4d80ceee9975c68b8163f5
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Wed Jan 12 09:11:09 2011 -0600

    deliver sfx2/sfxresid.hxx

diff --git a/rsc/source/parser/rscdb.cxx b/rsc/source/parser/rscdb.cxx
index d62af13..600d6f6 100644
--- a/rsc/source/parser/rscdb.cxx
+++ b/rsc/source/parser/rscdb.cxx
@@ -672,7 +672,8 @@ void RscEnumerateObj :: WriteRcFile( RscWriteRc & rMem, FILE * fOut ){
 
 
     //Position wurde vorher in Tabelle geschrieben
-    fwrite( rMem.GetBuffer(), rMem.Size(), 1, fOut );
+    int dummy = fwrite( rMem.GetBuffer(), rMem.Size(), 1, fOut );
+    (void)dummy; /* ignore write failure */
 
 };
 
@@ -837,7 +838,8 @@ void RscTypCont :: WriteSrc( FILE * fOutput, ULONG nFileKey,
     RscEnumerateRef aEnumRef( this, pRoot, fOutput );
 
     unsigned char aUTF8BOM[3] = { 0xef, 0xbb, 0xbf };
-    fwrite( aUTF8BOM, sizeof(unsigned char), SAL_N_ELEMENTS(aUTF8BOM), fOutput );
+    int dummy = fwrite( aUTF8BOM, sizeof(unsigned char), SAL_N_ELEMENTS(aUTF8BOM), fOutput );
+    (void)dummy; /* actively ignore write failure */
     if( bName )
     {
         WriteInc( fOutput, nFileKey );
diff --git a/tools/inc/tools/resid.hxx b/tools/inc/tools/resid.hxx
index decd09a..9eb03ed 100644
--- a/tools/inc/tools/resid.hxx
+++ b/tools/inc/tools/resid.hxx
@@ -30,6 +30,7 @@
 #define _TOOLS_RESID_HXX
 
 #include <tools/solar.h>
+#include <tools/toolsdllapi.h>
 #include <osl/diagnose.h>
 
 struct RSHEADER_TYPE;


More information about the Libreoffice-commits mailing list