summaryrefslogtreecommitdiff
path: root/storage/maria/ma_checksum.c
diff options
context:
space:
mode:
authorunknown <sanja@montyprogram.com>2013-10-29 17:50:13 +0200
committerunknown <sanja@montyprogram.com>2013-10-29 17:50:13 +0200
commit5ce11d8b4ca2a57968656925a69ed8114d5374f6 (patch)
treeb7cfbdb5dc2bda809543ae84ca60d7f79227399e /storage/maria/ma_checksum.c
parent883af99e7dac91e3f258135a2053e6b8e3c05fc3 (diff)
downloadmariadb-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/maria/ma_checksum.c')
-rw-r--r--storage/maria/ma_checksum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/maria/ma_checksum.c b/storage/maria/ma_checksum.c
index 61ec638053a..da2d40d3687 100644
--- a/storage/maria/ma_checksum.c
+++ b/storage/maria/ma_checksum.c
@@ -58,7 +58,7 @@ ha_checksum _ma_checksum(MARIA_HA *info, const uchar *record)
length= _ma_calc_blob_length(blob_size_length, pos);
if (length)
{
- memcpy((char*) &pos, pos + blob_size_length, sizeof(char*));
+ memcpy(&pos, pos + blob_size_length, sizeof(char*));
crc= my_checksum(crc, pos, length);
}
continue;