diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-12-08 13:03:37 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-12-08 13:04:08 -0600 |
commit | 0c60677c961814f2786f99b8ba0d8c9aec0605e4 (patch) | |
tree | 5ef67253ab4b64c9f6c9e6265611c07b562b2457 /connectivity | |
parent | a41bf630601cfc1add08583ed0d5542ca71f3334 (diff) |
WaE Mac gcc is confused with >>= operator overload (it is not alone)
>>= operator overload turn the right-value of the operator into a
left value... which confuse the heck out of the compiler's detection
of use of unitialized variables (and also C-reader like me for
whom >>= means something else altogether...
(why on earth are we right-bitshifting... with an unitialized variable...
oh! fracking operator overload!!!)
Diffstat (limited to 'connectivity')
3 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx b/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx index b900c0f8333d..9c35eefc63eb 100644 --- a/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx +++ b/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx @@ -681,7 +681,7 @@ void PreparedStatement::setObjectWithInfo( if( com::sun::star::sdbc::DataType::DECIMAL == targetSqlType || com::sun::star::sdbc::DataType::NUMERIC == targetSqlType ) { - double myDouble; + double myDouble = 0.0; OUString myString; if( x >>= myDouble ) { diff --git a/connectivity/source/drivers/postgresql/pq_statement.cxx b/connectivity/source/drivers/postgresql/pq_statement.cxx index b7f7401410c9..7304b153bbe8 100644 --- a/connectivity/source/drivers/postgresql/pq_statement.cxx +++ b/connectivity/source/drivers/postgresql/pq_statement.cxx @@ -448,7 +448,7 @@ static Sequence< ::rtl::OUString > lookupKeys( while( enumeration->hasMoreElements() ) { enumeration->nextElement() >>= set; - sal_Int32 keyType; + sal_Int32 keyType = 0; if( (set->getPropertyValue( st.TYPE ) >>= keyType ) && keyType == com::sun::star::sdbcx::KeyType::PRIMARY ) { diff --git a/connectivity/source/drivers/postgresql/pq_xtables.cxx b/connectivity/source/drivers/postgresql/pq_xtables.cxx index 483cc3fd88b7..44b1e18f3892 100644 --- a/connectivity/source/drivers/postgresql/pq_xtables.cxx +++ b/connectivity/source/drivers/postgresql/pq_xtables.cxx @@ -222,7 +222,7 @@ static void appendColumnList( OUString type = sqltype2string( column ); if( isAutoIncrement ) { - sal_Int32 dataType; + sal_Int32 dataType = 0; column->getPropertyValue( st.TYPE ) >>= dataType; if( com::sun::star::sdbc::DataType::INTEGER == dataType ) { |