diff options
author | monty@mysql.com <> | 2006-02-25 17:46:30 +0200 |
---|---|---|
committer | monty@mysql.com <> | 2006-02-25 17:46:30 +0200 |
commit | 54274976e7b4a9a28e94a6f0b4f8d064140248db (patch) | |
tree | 563e06651e9166da59ba432a876beee5175b6229 /sql/sql_class.h | |
parent | a7df038d168889ae3ba8e81f6303c779c0707fae (diff) | |
download | mariadb-git-54274976e7b4a9a28e94a6f0b4f8d064140248db.tar.gz |
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
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r-- | sql/sql_class.h | 6 |
1 files changed, 5 insertions, 1 deletions
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<Item> &fields) const { return 0; } bool send_fields(List<Item> &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; |