diff options
author | unknown <brian@zim.(none)> | 2006-08-23 15:12:42 -0700 |
---|---|---|
committer | unknown <brian@zim.(none)> | 2006-08-23 15:12:42 -0700 |
commit | 4ec86b1c0453c18092a9f66292b19afbceadd9dc (patch) | |
tree | 64c4a626dd8eac48a06906d6e8fd9dc7f519b7f7 | |
parent | fb47d6581bb07cca94add40815481d59bfda532e (diff) | |
download | mariadb-git-4ec86b1c0453c18092a9f66292b19afbceadd9dc.tar.gz |
This is a cleanup of warnings that windows is complaining about.
client/mysql.cc:
Windows warnings clean up
server-tools/instance-manager/parse.cc:
Cleanedup warning
sql/field.cc:
Removed unused variables
sql/filesort.cc:
Removed unused variables
sql/ha_innodb.cc:
Removed unused variables
sql/ha_partition.cc:
Fixing warning
sql/partition_element.h:
Fixing declaration for warnings
-rw-r--r-- | client/mysql.cc | 1 | ||||
-rw-r--r-- | server-tools/instance-manager/parse.cc | 2 | ||||
-rw-r--r-- | sql/field.cc | 5 | ||||
-rw-r--r-- | sql/filesort.cc | 1 | ||||
-rw-r--r-- | sql/ha_innodb.cc | 1 | ||||
-rw-r--r-- | sql/ha_partition.cc | 2 | ||||
-rw-r--r-- | sql/partition_element.h | 4 |
7 files changed, 6 insertions, 10 deletions
diff --git a/client/mysql.cc b/client/mysql.cc index 2f1efc3b02a..240b1a87fc8 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -2353,7 +2353,6 @@ print_table_data(MYSQL_RES *result) const char *buffer; uint data_length; uint field_max_length; - bool right_justified; uint visible_length; uint extra_padding; diff --git a/server-tools/instance-manager/parse.cc b/server-tools/instance-manager/parse.cc index 4e931488fce..d69fb1cecec 100644 --- a/server-tools/instance-manager/parse.cc +++ b/server-tools/instance-manager/parse.cc @@ -152,7 +152,7 @@ static bool parse_long(const LEX_STRING *token, long *value) int err_code; char *end_ptr= token->str + token->length; - *value= my_strtoll10(token->str, &end_ptr, &err_code); + *value= (long)my_strtoll10(token->str, &end_ptr, &err_code); return err_code != 0; } diff --git a/sql/field.cc b/sql/field.cc index 8ac32f03049..f2fe9d38917 100644 --- a/sql/field.cc +++ b/sql/field.cc @@ -9145,10 +9145,9 @@ create_field::create_field(Field *old_field,Field *orig_field) old_field->table->timestamp_field != old_field || /* timestamp field */ unireg_check == Field::TIMESTAMP_UN_FIELD)) /* has default val */ { - char buff[MAX_FIELD_WIDTH],*pos; - String tmp(buff,sizeof(buff), charset), *res; + char buff[MAX_FIELD_WIDTH]; + String tmp(buff,sizeof(buff), charset); my_ptrdiff_t diff; - bool is_null; /* Get the value from default_values */ diff= (my_ptrdiff_t) (orig_field->table->s->default_values- diff --git a/sql/filesort.cc b/sql/filesort.cc index f41d72ac07a..1851d5a5cff 100644 --- a/sql/filesort.cc +++ b/sql/filesort.cc @@ -886,7 +886,6 @@ static void make_sortkey(register SORTPARAM *param, static void register_used_fields(SORTPARAM *param) { reg1 SORT_FIELD *sort_field; - reg5 uint length; TABLE *table=param->sort_form; MY_BITMAP *bitmap= table->read_set; diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc index 41e211dd6d8..7f4d6abd4b7 100644 --- a/sql/ha_innodb.cc +++ b/sql/ha_innodb.cc @@ -2915,7 +2915,6 @@ ha_innobase::store_key_val_for_row( CHARSET_INFO* cs; ulint key_len; - ulint len; ulint true_len; int error=0; ulint blob_len; diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc index 615c4bfb1bf..ee0667b92bd 100644 --- a/sql/ha_partition.cc +++ b/sql/ha_partition.cc @@ -361,7 +361,7 @@ bool ha_partition::initialise_partition(MEM_ROOT *mem_root) HA_CAN_GEOMETRY, HA_CAN_FULLTEXT, HA_CAN_SQL_HANDLER, HA_DUPLICATE_POS, HA_CAN_INSERT_DELAYED is disabled until further investigated. */ - m_table_flags= m_file[0]->table_flags(); + m_table_flags= (ulong)m_file[0]->table_flags(); m_low_byte_first= m_file[0]->low_byte_first(); m_pkey_is_clustered= TRUE; file_array= m_file; diff --git a/sql/partition_element.h b/sql/partition_element.h index 5ca278997ae..1e2769bc21a 100644 --- a/sql/partition_element.h +++ b/sql/partition_element.h @@ -56,8 +56,8 @@ class partition_element :public Sql_alloc { public: List<partition_element> subpartitions; List<part_elem_value> list_val_list; - ulonglong part_max_rows; - ulonglong part_min_rows; + ha_rows part_max_rows; + ha_rows part_min_rows; longlong range_value; char *partition_name; char *tablespace_name; |