summaryrefslogtreecommitdiff
path: root/sql/field.cc
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 /sql/field.cc
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 'sql/field.cc')
-rw-r--r--sql/field.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/field.cc b/sql/field.cc
index 60ec8fcea57..933025ba896 100644
--- a/sql/field.cc
+++ b/sql/field.cc
@@ -7433,7 +7433,7 @@ int Field_blob::store(const char *from,uint length,CHARSET_INFO *cs)
if (!String::needs_conversion(length, cs, field_charset, &dummy_offset))
{
Field_blob::store_length(length);
- bmove(ptr+packlength,(char*) &from,sizeof(char*));
+ bmove(ptr + packlength, &from, sizeof(char*));
return 0;
}
if (tmpstr.copy(from, length, cs))
@@ -8071,7 +8071,7 @@ int Field_geom::store(const char *from, uint length, CHARSET_INFO *cs)
value.copy(from, length, cs);
from= value.ptr();
}
- bmove(ptr + packlength, (char*) &from, sizeof(char*));
+ bmove(ptr + packlength, &from, sizeof(char*));
}
return 0;