mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Bug #53445 Build with -Wall and fix warnings that it generates
Add -Wall to gcc/g++ Fix most warnings reported in dbg and opt mode.
This commit is contained in:
@ -128,6 +128,16 @@ Geometry::Class_info *Geometry::find_class(const char *name, uint32 len)
|
||||
}
|
||||
|
||||
|
||||
Geometry *Geometry::create_by_typeid(Geometry_buffer *buffer, int type_id)
|
||||
{
|
||||
Class_info *ci;
|
||||
if (!(ci= find_class((int) type_id)))
|
||||
return NULL;
|
||||
(*ci->m_create_func)(buffer->buf.arr());
|
||||
return my_reinterpret_cast(Geometry *)(buffer->buf.arr());
|
||||
}
|
||||
|
||||
|
||||
Geometry *Geometry::construct(Geometry_buffer *buffer,
|
||||
const char *data, uint32 data_len)
|
||||
{
|
||||
|
Reference in New Issue
Block a user