summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-03 13:29:23 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-03 13:41:13 +0100
commit0ab1c04df01830c5dcc319bcbecdcc4fc6051e60 (patch)
tree74d1b6a32f19c4282a434d6ef731dd4d84bcfc25
parent9d87f2e2fc6fb20d183e1c8040594ccdcd62703d (diff)
WaE: various warnings
-rw-r--r--vcl/source/fontsubset/sft.cxx10
-rw-r--r--vcl/unx/generic/app/saldata.cxx2
-rw-r--r--vcl/unx/generic/app/sm.cxx2
3 files changed, 8 insertions, 6 deletions
diff --git a/vcl/source/fontsubset/sft.cxx b/vcl/source/fontsubset/sft.cxx
index 44ac9414534f..443b93df8086 100644
--- a/vcl/source/fontsubset/sft.cxx
+++ b/vcl/source/fontsubset/sft.cxx
@@ -112,7 +112,7 @@ typedef struct {
typedef struct {
FILE *o;
char buffer[HFORMAT_LINELEN];
- int bufpos;
+ size_t bufpos;
int total;
} HexFmt;
@@ -435,15 +435,17 @@ static HexFmt *HexFmtNew(FILE *outf)
return res;
}
-static void HexFmtFlush(HexFmt *_this)
+static bool HexFmtFlush(HexFmt *_this)
{
+ bool bRet = true;
if (_this->bufpos) {
- fwrite(_this->buffer, 1, _this->bufpos, _this->o);
+ size_t nWritten = fwrite(_this->buffer, 1, _this->bufpos, _this->o);
+ bRet = nWritten == _this->bufpos;
_this->bufpos = 0;
}
+ return bRet;
}
-
_inline void HexFmtOpenString(HexFmt *_this)
{
fputs("<\n", _this->o);
diff --git a/vcl/unx/generic/app/saldata.cxx b/vcl/unx/generic/app/saldata.cxx
index 233582c07f6e..6d502e8563df 100644
--- a/vcl/unx/generic/app/saldata.cxx
+++ b/vcl/unx/generic/app/saldata.cxx
@@ -801,7 +801,7 @@ void SalXLib::Yield( bool bWait, bool bHandleAllCurrentEvents )
void SalXLib::Wakeup()
{
- write (m_pTimeoutFDS[1], "", 1);
+ OSL_VERIFY(write (m_pTimeoutFDS[1], "", 1) == 1);
}
void SalXLib::PostUserEvent()
diff --git a/vcl/unx/generic/app/sm.cxx b/vcl/unx/generic/app/sm.cxx
index ac2682df4510..e12c3c91c41b 100644
--- a/vcl/unx/generic/app/sm.cxx
+++ b/vcl/unx/generic/app/sm.cxx
@@ -657,7 +657,7 @@ void ICEConnectionObserver::deactivate()
void ICEConnectionObserver::wakeup()
{
char cChar = 'w';
- write( nWakeupFiles[1], &cChar, 1 );
+ OSL_VERIFY(write( nWakeupFiles[1], &cChar, 1 ) == 1);
}
void ICEConnectionWorker( void* )