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 | 0b132a38935fc40ab148c72d64fd9249e9be0c6f (patch) | |
tree | e6024902015d86ae6eca6439813fd58317323c13 /idlc | |
parent | 9957af8a1ef119e29c43542421c42be456cbc3c6 (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 49063d1f1..6a172e5be 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 4c0f5c688..df1140040 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( |