Browse Source

versioning: add explict fallthough to prevent gcc warning

gcc7 warning:

sql/table.cc: In member function ‘int TABLE_SHARE::init_from_binary_frm_image(THD*, bool, const uchar*, size_t)’:
sql/table.cc:2032:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
           if (vers_can_native)
           ^~
sql/table.cc:2037:9: note: here
         default:
         ^~~~~~~
pull/586/head
Daniel Black 8 years ago
committed by Sergey Vojtovich
parent
commit
464ba0e97f
  1. 1
      sql/table.cc

1
sql/table.cc

@ -2037,6 +2037,7 @@ int TABLE_SHARE::init_from_binary_frm_image(THD *thd, bool write,
versioned= VERS_TRX_ID;
break;
}
/* Fallthrough */
default:
my_error(ER_VERS_FIELD_WRONG_TYPE, MYF(0), fieldnames.type_names[i],
versioned == VERS_TIMESTAMP ? "TIMESTAMP(6)" : "BIGINT(20) UNSIGNED",

Loading…
Cancel
Save