diff options
author | David Tardon <dtardon@redhat.com> | 2012-04-16 18:25:48 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-04-16 20:23:23 +0200 |
commit | e6c997c96226cb4e8244f7ded91a8a0fde91c93b (patch) | |
tree | 304af8b1de7bc49c942cb3ef1689a07117af06a6 /forms | |
parent | mingw: avoid weird build error and -Werror (diff) | |
download | core-e6c997c96226cb4e8244f7ded91a8a0fde91c93b.tar.gz core-e6c997c96226cb4e8244f7ded91a8a0fde91c93b.zip |
mingw: avoid weird build error and -Werror
The error message is:
"'*((void*)& aBoundColumn +2)' may be used uninitialized in this function"
using gcc 4.7.0 in gnu++11 mode and boost 1.48.0 .
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/component/ListBox.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx index 5dbf8a857f56..84bf9ff22059 100644 --- a/forms/source/component/ListBox.cxx +++ b/forms/source/component/ListBox.cxx @@ -678,7 +678,8 @@ namespace frm return; } - ::boost::optional< sal_Int16 > aBoundColumn; + ::boost::optional< sal_Int16 > aBoundColumn(0); + aBoundColumn.reset(); if ( m_aBoundColumn.getValueType().getTypeClass() == TypeClass_SHORT ) { sal_Int16 nBoundColumn( 0 ); |