Skip to content

Commit 464ba0e

Browse files
grooverdansvoj
authored andcommitted
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: ^~~~~~~
1 parent 5db9c6e commit 464ba0e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sql/table.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2037,6 +2037,7 @@ int TABLE_SHARE::init_from_binary_frm_image(THD *thd, bool write,
20372037
versioned= VERS_TRX_ID;
20382038
break;
20392039
}
2040+
/* Fallthrough */
20402041
default:
20412042
my_error(ER_VERS_FIELD_WRONG_TYPE, MYF(0), fieldnames.type_names[i],
20422043
versioned == VERS_TIMESTAMP ? "TIMESTAMP(6)" : "BIGINT(20) UNSIGNED",

0 commit comments

Comments
 (0)