diff options
author | unknown <sanja@montyprogram.com> | 2013-10-29 17:50:13 +0200 |
---|---|---|
committer | unknown <sanja@montyprogram.com> | 2013-10-29 17:50:13 +0200 |
commit | 5ce11d8b4ca2a57968656925a69ed8114d5374f6 (patch) | |
tree | b7cfbdb5dc2bda809543ae84ca60d7f79227399e /storage/myisam | |
parent | 883af99e7dac91e3f258135a2053e6b8e3c05fc3 (diff) | |
download | mariadb-git-5ce11d8b4ca2a57968656925a69ed8114d5374f6.tar.gz |
MariaDB made be compiled by gcc 4.8.1
There was 2 problems:
1) coping/moving of the same type (usually casting) as sizeof() (solved in different ways depends on the cause);
2) using 'const' in SSL_CTX::getVerifyCallback() which return object (not reference) and so copy of the object will be created and 'const' has no sens.
Diffstat (limited to 'storage/myisam')
-rw-r--r-- | storage/myisam/mi_checksum.c | 2 | ||||
-rw-r--r-- | storage/myisam/mi_key.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/storage/myisam/mi_checksum.c b/storage/myisam/mi_checksum.c index 8c408ef7ff5..13dd52db22e 100644 --- a/storage/myisam/mi_checksum.c +++ b/storage/myisam/mi_checksum.c @@ -40,7 +40,7 @@ ha_checksum mi_checksum(MI_INFO *info, const uchar *buf) length=_mi_calc_blob_length(column->length- portable_sizeof_char_ptr, buf); - memcpy((char*) &pos, buf+column->length- portable_sizeof_char_ptr, + memcpy(&pos, buf+column->length- portable_sizeof_char_ptr, sizeof(char*)); break; } diff --git a/storage/myisam/mi_key.c b/storage/myisam/mi_key.c index a3d38269e61..01e32780b17 100644 --- a/storage/myisam/mi_key.c +++ b/storage/myisam/mi_key.c @@ -425,7 +425,7 @@ static int _mi_put_key_in_record(register MI_INFO *info, uint keynr, if (unpack_blobs) { memcpy(record+keyseg->start+keyseg->bit_start, - (char*) &blob_ptr,sizeof(char*)); + &blob_ptr, sizeof(char *)); memcpy(blob_ptr,key,length); blob_ptr+=length; |