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_cache.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_cache.h')
-rw-r--r-- | sql/sql_cache.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/sql_cache.h b/sql/sql_cache.h index 69a0d6cd05d..29d314d3c44 100644 --- a/sql/sql_cache.h +++ b/sql/sql_cache.h @@ -69,6 +69,7 @@ class Query_cache; struct Query_cache_block_table { + Query_cache_block_table() {} /* Remove gcc warning */ TABLE_COUNTER_TYPE n; // numbr in table (from 0) Query_cache_block_table *next, *prev; Query_cache_table *parent; @@ -78,6 +79,7 @@ struct Query_cache_block_table struct Query_cache_block { + Query_cache_block() {} /* Remove gcc warning */ enum block_type {FREE, QUERY, RESULT, RES_CONT, RES_BEG, RES_INCOMPLETE, TABLE, INCOMPLETE}; @@ -143,6 +145,7 @@ struct Query_cache_query struct Query_cache_table { + Query_cache_table() {} /* Remove gcc warning */ char *tbl; uint32 key_len; uint8 table_type; @@ -171,6 +174,7 @@ struct Query_cache_table struct Query_cache_result { + Query_cache_result() {} /* Remove gcc warning */ Query_cache_block *query; inline gptr data() @@ -197,6 +201,7 @@ extern "C" void query_cache_invalidate_by_MyISAM_filename(const char* filename); struct Query_cache_memory_bin { + Query_cache_memory_bin() {} /* Remove gcc warning */ #ifndef DBUG_OFF ulong size; #endif @@ -215,6 +220,7 @@ struct Query_cache_memory_bin struct Query_cache_memory_bin_step { + Query_cache_memory_bin_step() {} /* Remove gcc warning */ ulong size; ulong increment; uint idx; |