Commit 65b93cef authored by Eugene Kosov's avatar Eugene Kosov

fix clang build

parent 1247b36b
...@@ -155,7 +155,7 @@ extern "C" my_bool get_one_option(const struct my_option *opt ...@@ -155,7 +155,7 @@ extern "C" my_bool get_one_option(const struct my_option *opt
} }
static void get_options(register int *argc,register char ***argv) static void get_options(int *argc, char ***argv)
{ {
int ho_error; int ho_error;
......
...@@ -30,52 +30,53 @@ class ha_s3 :public ha_maria ...@@ -30,52 +30,53 @@ class ha_s3 :public ha_maria
ha_s3(handlerton *hton, TABLE_SHARE * table_arg); ha_s3(handlerton *hton, TABLE_SHARE * table_arg);
~ha_s3() {} ~ha_s3() {}
int create(const char *name, TABLE *table_arg, HA_CREATE_INFO *ha_create_info); int create(const char *name, TABLE *table_arg,
int open(const char *name, int mode, uint open_flags); HA_CREATE_INFO *ha_create_info) final;
int write_row(const uchar *buf); int open(const char *name, int mode, uint open_flags) final;
int update_row(const uchar * old_data, const uchar * new_data) int write_row(const uchar *buf) final;
int update_row(const uchar * old_data, const uchar * new_data) final
{ {
DBUG_ENTER("update_row"); DBUG_ENTER("update_row");
DBUG_RETURN(HA_ERR_WRONG_COMMAND); DBUG_RETURN(HA_ERR_WRONG_COMMAND);
} }
int delete_row(const uchar * buf) int delete_row(const uchar * buf) final
{ {
DBUG_ENTER("delete_row"); DBUG_ENTER("delete_row");
DBUG_RETURN(HA_ERR_WRONG_COMMAND); DBUG_RETURN(HA_ERR_WRONG_COMMAND);
} }
int check(THD * thd, HA_CHECK_OPT * check_opt) int check(THD * thd, HA_CHECK_OPT * check_opt) final
{ {
DBUG_ENTER("delete_row"); DBUG_ENTER("delete_row");
DBUG_RETURN(HA_ERR_WRONG_COMMAND); DBUG_RETURN(HA_ERR_WRONG_COMMAND);
} }
int analyze(THD * thd, HA_CHECK_OPT * check_opt) int analyze(THD * thd, HA_CHECK_OPT * check_opt) final
{ {
DBUG_ENTER("analyze"); DBUG_ENTER("analyze");
DBUG_RETURN(HA_ERR_WRONG_COMMAND); DBUG_RETURN(HA_ERR_WRONG_COMMAND);
} }
int repair(THD * thd, HA_CHECK_OPT * check_opt) int repair(THD * thd, HA_CHECK_OPT * check_opt) final
{ {
DBUG_ENTER("repair"); DBUG_ENTER("repair");
DBUG_RETURN(HA_ERR_WRONG_COMMAND); DBUG_RETURN(HA_ERR_WRONG_COMMAND);
} }
int preload_keys(THD * thd, HA_CHECK_OPT * check_opt) int preload_keys(THD * thd, HA_CHECK_OPT * check_opt) final
{ {
DBUG_ENTER("preload_keys"); DBUG_ENTER("preload_keys");
DBUG_RETURN(HA_ERR_WRONG_COMMAND); DBUG_RETURN(HA_ERR_WRONG_COMMAND);
} }
int external_lock(THD * thd, int lock_type); int external_lock(THD * thd, int lock_type) final;
/* /*
drop_table() is only used for internal temporary tables, drop_table() is only used for internal temporary tables,
not applicable for s3 not applicable for s3
*/ */
void drop_table(const char *name) void drop_table(const char *name) final
{ {
} }
int delete_table(const char *name); int delete_table(const char *name) final;
int rename_table(const char *from, const char *to); int rename_table(const char *from, const char *to) final;
int discover_check_version() override; int discover_check_version() override;
int rebind(); int rebind();
S3_INFO *s3_open_args() { return open_args; } S3_INFO *s3_open_args() final { return open_args; }
void register_handler(MARIA_HA *file); void register_handler(MARIA_HA *file) final;
}; };
#endif /* HA_S3_INCLUDED */ #endif /* HA_S3_INCLUDED */
...@@ -1067,7 +1067,7 @@ int s3_delete_object(ms3_st *s3_client, const char *aws_bucket, ...@@ -1067,7 +1067,7 @@ int s3_delete_object(ms3_st *s3_client, const char *aws_bucket,
const char *name, myf error_flags) const char *name, myf error_flags)
{ {
uint8_t error; uint8_t error;
int result; int result= 0;
DBUG_ENTER("s3_delete_object"); DBUG_ENTER("s3_delete_object");
DBUG_PRINT("enter", ("name: %s", name)); DBUG_PRINT("enter", ("name: %s", name));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment