Skip to content
Permalink
Browse files
gcc 8 warnings
  • Loading branch information
vuvova authored and dr-m committed Apr 2, 2019
1 parent f3adfcb commit 79fe175
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
@@ -45,9 +45,6 @@ class Sql_alloc
#ifdef HAVE_valgrind
bool dummy_for_valgrind;
inline Sql_alloc() :dummy_for_valgrind(0) {}
#else
inline Sql_alloc() {}
#endif
inline ~Sql_alloc() {}
};
#endif /* SQL_ALLOC_INCLUDED */
@@ -59,6 +59,8 @@ struct extra2_fields
LEX_CUSTRING field_flags;
LEX_CUSTRING system_period;
LEX_CUSTRING application_period;
void reset()
{ bzero((void*)this, sizeof(*this)); }
};

static Virtual_column_info * unpack_vcol_info_from_frm(THD *, MEM_ROOT *,
@@ -1451,7 +1453,7 @@ bool read_extra2(const uchar *frm_image, size_t len, extra2_fields *fields)

DBUG_ENTER("read_extra2");

memset(fields, 0, sizeof(extra2_fields));
fields->reset();

if (*extra2 != '/') // old frm had '/' there
{

0 comments on commit 79fe175

Please sign in to comment.