summaryrefslogtreecommitdiff
path: root/storage/myisam/mi_checksum.c
diff options
context:
space:
mode:
authorTor Didriksen <tor.didriksen@oracle.com>2013-06-14 10:52:23 +0200
committerTor Didriksen <tor.didriksen@oracle.com>2013-06-14 10:52:23 +0200
commitc94ccb237e5f8b0f72c742746aa49f8ff8440f98 (patch)
tree635f7a3d45ec27024d2f7e63e79da82fdeb47273 /storage/myisam/mi_checksum.c
parentd0e586763a728fe7eb501df1effe2a4841a62e11 (diff)
downloadmariadb-git-c94ccb237e5f8b0f72c742746aa49f8ff8440f98.tar.gz
Bug#16729109: FIX COMPILATION WARNINGS WITH GCC 4.8
Backport to 5.5 (external Bug#69407 Build warnings with mysql) support-files/build-tags: Run etags on sql_yacc.yy, ignore other .yy files unittest/mysys/explain_filename-t.cc: NO_PLAN seems to fail on some platforms, use the actual number instead.
Diffstat (limited to 'storage/myisam/mi_checksum.c')
-rw-r--r--storage/myisam/mi_checksum.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/storage/myisam/mi_checksum.c b/storage/myisam/mi_checksum.c
index 3d95eb2b609..97503878e56 100644
--- a/storage/myisam/mi_checksum.c
+++ b/storage/myisam/mi_checksum.c
@@ -33,8 +33,7 @@ ha_checksum mi_checksum(MI_INFO *info, const uchar *buf)
length=_mi_calc_blob_length(rec->length-
portable_sizeof_char_ptr,
buf);
- memcpy((char*) &pos, buf+rec->length- portable_sizeof_char_ptr,
- sizeof(char*));
+ memcpy(&pos, buf+rec->length- portable_sizeof_char_ptr, sizeof(char*));
break;
}
case FIELD_VARCHAR: