WaE: gcc 4.6.0 various warnings

This commit is contained in:
Caolán McNamara
2011-01-24 09:44:32 +00:00
parent 7feee86a51
commit 3e2a450a92
3 changed files with 6 additions and 4 deletions

View File

@@ -2173,6 +2173,7 @@ basegfx::B2DPolygon Polygon::getB2DPolygon() const
// assert invalid polygons // assert invalid polygons
OSL_ENSURE(bControlA == bControlB, "Polygon::getB2DPolygon: Invalid source polygon (!)"); OSL_ENSURE(bControlA == bControlB, "Polygon::getB2DPolygon: Invalid source polygon (!)");
(void)bControlB;
if(a < nCount) if(a < nCount)
{ {

View File

@@ -158,6 +158,8 @@ SvPersistStream& operator >> ( SvPersistStream & rStm,
aStr += ByteString::CreateFromInt64(nObjLen); aStr += ByteString::CreateFromInt64(nObjLen);
DBG_ERROR( aStr.GetBuffer() ); DBG_ERROR( aStr.GetBuffer() );
} }
#else
(void)nObjLen;
#endif #endif
return rStm; return rStm;
} }
@@ -762,6 +764,8 @@ UINT32 SvPersistStream::ReadObj
aStr += ByteString::CreateFromInt32( nClassId ); aStr += ByteString::CreateFromInt32( nClassId );
aStr += " registered"; aStr += " registered";
DBG_WARNING( aStr.GetBuffer() ); DBG_WARNING( aStr.GetBuffer() );
#else
(void)nObjLen;
#endif #endif
SetError( ERRCODE_IO_NOFACTORY ); SetError( ERRCODE_IO_NOFACTORY );
return 0; return 0;
@@ -881,7 +885,7 @@ SvStream& operator >>
{ {
SvPersistBase * pEle; SvPersistBase * pEle;
// Lesen, ohne in die Tabellen einzutragen // Lesen, ohne in die Tabellen einzutragen
UINT32 nId = rThis.ReadObj( pEle, FALSE ); sal_uIntPtr nId = rThis.ReadObj( pEle, FALSE );
if( rThis.GetError() ) if( rThis.GetError() )
break; break;

View File

@@ -104,8 +104,6 @@ SAL_IMPLEMENT_MAIN()
printf("rtl_TextEncoding getBestMSEncodingByChar(sal_Unicode c)\n"); printf("rtl_TextEncoding getBestMSEncodingByChar(sal_Unicode c)\n");
printf("{\n"); printf("{\n");
bool bFirstOutput = true;
sal_Unicode c = 0; sal_Unicode c = 0;
while (c < 0xFFFF) while (c < 0xFFFF)
{ {
@@ -134,7 +132,6 @@ SAL_IMPLEMENT_MAIN()
sal_Unicode cEnd = c; sal_Unicode cEnd = c;
printf(" if (c < 0x%x)\n", c); printf(" if (c < 0x%x)\n", c);
printf(" return %s;\n", aConverters[nMostCapable].getName()); printf(" return %s;\n", aConverters[nMostCapable].getName());
bFirstOutput = false;
while(c < 0xFFFF) while(c < 0xFFFF)
{ {
bool bNothingCapable = true; bool bNothingCapable = true;