From 54274976e7b4a9a28e94a6f0b4f8d064140248db Mon Sep 17 00:00:00 2001 From: "monty@mysql.com" <> Date: Sat, 25 Feb 2006 17:46:30 +0200 Subject: Fixed compiler warnings from gcc 4.0.2: - Added empty constructors and virtual destructors to many classes and structs - Removed some usage of the offsetof() macro to instead use C++ class pointers --- sql/sql_class.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sql/sql_class.h') diff --git a/sql/sql_class.h b/sql/sql_class.h index 65e6ebea33e..048a0a49618 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -69,7 +69,8 @@ class TC_LOG class TC_LOG_DUMMY: public TC_LOG // use it to disable the logging { - public: +public: + TC_LOG_DUMMY() {} /* Remove gcc warning */ int open(const char *opt_name) { return 0; } void close() { } int log(THD *thd, my_xid xid) { return 1; } @@ -930,6 +931,7 @@ void xid_cache_delete(XID_STATE *xid_state); class Security_context { public: + Security_context() {} /* Remove gcc warning */ /* host - host of the client user - user of the client, set to NULL until the user has been read from @@ -1679,6 +1681,7 @@ public: class select_result_interceptor: public select_result { public: + select_result_interceptor() {} /* Remove gcc warning */ uint field_count(List &fields) const { return 0; } bool send_fields(List &fields, uint flag) { return FALSE; } }; @@ -1966,6 +1969,7 @@ class Table_ident :public Sql_alloc class user_var_entry { public: + user_var_entry() {} /* Remove gcc warning */ LEX_STRING name; char *value; ulong length; -- cgit v1.2.1