Kaydet (Commit) e6c997c9 authored tarafından David Tardon's avatar David Tardon

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 .
üst 849b02e4
...@@ -678,7 +678,8 @@ namespace frm ...@@ -678,7 +678,8 @@ namespace frm
return; return;
} }
::boost::optional< sal_Int16 > aBoundColumn; ::boost::optional< sal_Int16 > aBoundColumn(0);
aBoundColumn.reset();
if ( m_aBoundColumn.getValueType().getTypeClass() == TypeClass_SHORT ) if ( m_aBoundColumn.getValueType().getTypeClass() == TypeClass_SHORT )
{ {
sal_Int16 nBoundColumn( 0 ); sal_Int16 nBoundColumn( 0 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment