summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/aststack.cxx4
-rw-r--r--idlc/source/astunion.cxx2
2 files changed, 1 insertions, 5 deletions
diff --git a/idlc/source/aststack.cxx b/idlc/source/aststack.cxx
index 711c86d45fad..d3db212e18fb 100644
--- a/idlc/source/aststack.cxx
+++ b/idlc/source/aststack.cxx
@@ -124,11 +124,9 @@ AstStack* AstStack::push(AstScope* pScope)
void AstStack::pop()
{
- AstScope *pScope;
-
if (m_top < 1)
return;
- pScope = m_stack[--m_top];
+ --m_top;
}
void AstStack::clear()
diff --git a/idlc/source/astunion.cxx b/idlc/source/astunion.cxx
index aaa6ca36aa83..e0a8bf84b01e 100644
--- a/idlc/source/astunion.cxx
+++ b/idlc/source/astunion.cxx
@@ -305,7 +305,6 @@ sal_Bool AstUnion::dump(RegistryKey& rKey)
AstUnionLabel* pLabel = NULL;
AstExprValue* pExprValue = NULL;
RTConstValue aConst;
- RTFieldAccess access = RT_ACCESS_READWRITE;
OUString docu;
sal_uInt16 index = 0;
if ( pDefault )
@@ -345,7 +344,6 @@ sal_Bool AstUnion::dump(RegistryKey& rKey)
if ( pDefault )
{
- access = RT_ACCESS_DEFAULT;
aConst.m_type = RT_TYPE_INT64;
aConst.m_value.aHyper = disc + 1;
aBlob.setFieldData(