summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-01-29 17:11:13 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-01-29 17:15:39 +0000
commit000640ac35d1b9596126e76271aba3c4be7514de (patch)
tree0d1099dd041b90e7b25f15ab580c72dc04853306 /starmath
parentf11e417a89ea2d87ffe5b64092f56efd4f2af9c1 (diff)
WaE: various new gcc 4.6.0 warnings
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/cfgitem.cxx1
-rw-r--r--starmath/source/parse.cxx35
2 files changed, 19 insertions, 17 deletions
diff --git a/starmath/source/cfgitem.cxx b/starmath/source/cfgitem.cxx
index 876a679523d8..ed435d880b22 100644
--- a/starmath/source/cfgitem.cxx
+++ b/starmath/source/cfgitem.cxx
@@ -748,6 +748,7 @@ void SmMathConfig::ReadFontFormat( SmFontFormat &rFontFormat,
++pValue;
OSL_ENSURE( bOK, "read FontFormat failed" );
+ (void)bOK;
}
}
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx
index e20340c7da9a..876cf250fc63 100644
--- a/starmath/source/parse.cxx
+++ b/starmath/source/parse.cxx
@@ -1569,28 +1569,29 @@ void SmParser::Escape()
{
NextToken();
- sal_Unicode cChar;
switch (CurToken.eType)
- { case TLPARENT : cChar = MS_LPARENT; break;
- case TRPARENT : cChar = MS_RPARENT; break;
- case TLBRACKET : cChar = MS_LBRACKET; break;
- case TRBRACKET : cChar = MS_RBRACKET; break;
- case TLDBRACKET : cChar = MS_LDBRACKET; break;
- case TRDBRACKET : cChar = MS_RDBRACKET; break;
+ {
+ case TLPARENT :
+ case TRPARENT :
+ case TLBRACKET :
+ case TRBRACKET :
+ case TLDBRACKET :
+ case TRDBRACKET :
case TLBRACE :
- case TLGROUP : cChar = MS_LBRACE; break;
+ case TLGROUP :
case TRBRACE :
- case TRGROUP : cChar = MS_RBRACE; break;
- case TLANGLE : cChar = MS_LANGLE; break;
- case TRANGLE : cChar = MS_RANGLE; break;
- case TLCEIL : cChar = MS_LCEIL; break;
- case TRCEIL : cChar = MS_RCEIL; break;
- case TLFLOOR : cChar = MS_LFLOOR; break;
- case TRFLOOR : cChar = MS_RFLOOR; break;
+ case TRGROUP :
+ case TLANGLE :
+ case TRANGLE :
+ case TLCEIL :
+ case TRCEIL :
+ case TLFLOOR :
+ case TRFLOOR :
case TLLINE :
- case TRLINE : cChar = MS_LINE; break;
+ case TRLINE :
case TLDLINE :
- case TRDLINE : cChar = MS_DLINE; break;
+ case TRDLINE :
+ break;
default:
Error(PE_UNEXPECTED_TOKEN);
}