summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-01-30 14:33:46 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-01-30 21:59:59 +0100
commit654bbb9559dc4dfbd3dfc56f15fcedae9e8d5a27 (patch)
tree73f741c755956267c41af8da3e63908d7e1a079b /connectivity
parent2035b3ea5390f2d1d61a72b7c2e8f1193db3d2d2 (diff)
Fix type of MySqlFieldInfo::mysql_type to avoid -Wc++11-narrowing (clang-cl)
...at > connectivity/source/drivers/mysqlc/mysqlc_resultsetmetadata.cxx(45,13): error: non-constant-expression cannot be narrowed from type 'enum enum_field_types' to 'unsigned int' in initializer list [-Wc++11-narrowing] > fields[i].type, // mysql_type > ^~~~~~~~~~~~~~ Change-Id: I3439ca06b9dd6efb24931203f7c7842e430f034c Reviewed-on: https://gerrit.libreoffice.org/67141 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/mysqlc/mysqlc_resultsetmetadata.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/mysqlc/mysqlc_resultsetmetadata.hxx b/connectivity/source/drivers/mysqlc/mysqlc_resultsetmetadata.hxx
index a7de887bd78d..52ca9595b9ba 100644
--- a/connectivity/source/drivers/mysqlc/mysqlc_resultsetmetadata.hxx
+++ b/connectivity/source/drivers/mysqlc/mysqlc_resultsetmetadata.hxx
@@ -42,7 +42,7 @@ struct MySqlFieldInfo
OUString columnName;
sal_Int32 length = 0;
sal_Int32 type = 0;
- unsigned mysql_type = 0;
+ enum_field_types mysql_type = {};
unsigned charsetNumber = 0;
unsigned flags = 0;
OUString schemaName;