diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-01-24 10:52:43 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-24 10:52:43 +0000 |
commit | b3e081013d31518de220745b833dd1ebc36704a0 (patch) | |
tree | c3cc2d35cfd14c9345198c821bad0bde1254b2d2 /idlc | |
parent | 68ae086bca45f47ee9462372933426d67809264d (diff) |
WaE: gcc 4.6.0 various warnings
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/source/aststack.cxx | 4 | ||||
-rw-r--r-- | idlc/source/astunion.cxx | 2 |
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( |