mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
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 configure.in: Added comment ndb/include/ndbapi/NdbDictionary.hpp: Fixed compiler warnings from gcc 4.0.2 sql/field.cc: Fixed compiler warnings from gcc 4.0.2 sql/handler.h: Fixed compiler warnings from gcc 4.0.2 sql/item.h: Fixed compiler warnings from gcc 4.0.2 sql/item_cmpfunc.h: Fixed compiler warnings from gcc 4.0.2 sql/log_event.h: Fixed compiler warnings from gcc 4.0.2 sql/mysql_priv.h: Fixed compiler warnings from gcc 4.0.2 For find_table_in_list I fixed it to use proper C++ class pointers instead of C style pointers sql/opt_range.cc: Fixed compiler warnings from gcc 4.0.2 sql/parse_file.h: Fixed compiler warnings from gcc 4.0.2 sql/sp_rcontext.h: Fixed compiler warnings from gcc 4.0.2 sql/spatial.h: Fixed compiler warnings from gcc 4.0.2 sql/sql_base.cc: Fixed compiler warnings from gcc 4.0.2 sql/sql_cache.h: Fixed compiler warnings from gcc 4.0.2 sql/sql_class.h: Fixed compiler warnings from gcc 4.0.2 sql/sql_parse.cc: Fixed compiler warnings from gcc 4.0.2 (Not pretty, but seams to work...) sql/sql_select.h: Fixed compiler warnings from gcc 4.0.2 sql/sql_update.cc: Fixed compiler warnings from gcc 4.0.2 sql/table.h: Fixed compiler warnings from gcc 4.0.2 sql/tztime.cc: Fixed compiler warnings from gcc 4.0.2 sql/tztime.h: Fixed compiler warnings from gcc 4.0.2
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user