summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2011-12-08 13:03:37 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2011-12-08 13:07:08 -0600
commit7fb4d669510994e409677be33868561bfcc37403 (patch)
treebd6995ad40ee7d2b019bfde537b897d5f58f612c /connectivity
parentc08f5d7de3edae2ed6ca419043da0b13a9877f25 (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')
-rw-r--r--connectivity/source/drivers/postgresql/pq_preparedstatement.cxx2
-rw-r--r--connectivity/source/drivers/postgresql/pq_statement.cxx2
-rw-r--r--connectivity/source/drivers/postgresql/pq_xtables.cxx2
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 )
{