From 187a6f5d2dfd8a94708cedea992aa551074726a4 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 4 Aug 2020 11:40:38 +0200 Subject: [PATCH] Silence -Werror,-Wdeprecated-enum-enum-conversion (clang-cl) "bitwise operation between different enumeration types ('CommandTypeEnum' and 'ExecuteOptionEnum')", but where documents parameter Options as "A Long [...] Can be a bitmask of one or more CommandTypeEnum or ExecuteOptionEnum values." Change-Id: If000490127e7215863ea750a3f9f30e69916978e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100070 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- connectivity/source/drivers/ado/AStatement.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connectivity/source/drivers/ado/AStatement.cxx b/connectivity/source/drivers/ado/AStatement.cxx index 01fea934cd19..6f2c14617e0e 100644 --- a/connectivity/source/drivers/ado/AStatement.cxx +++ b/connectivity/source/drivers/ado/AStatement.cxx @@ -396,7 +396,7 @@ sal_Int32 SAL_CALL OStatement_Base::executeUpdate( const OUString& sql ) try { ADORecordset* pSet = nullptr; CHECK_RETURN(m_Command.put_CommandText(sql)) - CHECK_RETURN(m_Command.Execute(m_RecordsAffected,m_Parameters,adCmdText|adExecuteNoRecords,&pSet)) + CHECK_RETURN(m_Command.Execute(m_RecordsAffected,m_Parameters,long(adCmdText)|long(adExecuteNoRecords),&pSet)) } catch (SQLWarning& ex) {