From b3e081013d31518de220745b833dd1ebc36704a0 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 24 Jan 2011 10:52:43 +0000 Subject: WaE: gcc 4.6.0 various warnings --- idlc/source/aststack.cxx | 4 +--- idlc/source/astunion.cxx | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'idlc/source') 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( -- cgit