mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Fixed compiler warnings detected by option -Wshadow and -Wunused:
- Removed not used variables and functions - Added #ifdef around code that is not used - Renamed variables and functions to avoid conflicts - Removed some not used arguments Fixed some class/struct warnings in ndb Added define IS_LONGDATA() to simplify code in libmysql.c I did run gcov on the changes and added 'purecov' comments on almost all lines that was not just variable name changes
This commit is contained in:
@@ -128,7 +128,7 @@ struct Query_cache_query
|
||||
inline void tables_type(uint8 type) { tbls_type= type; }
|
||||
inline ulong length() { return len; }
|
||||
inline ulong add(ulong packet_len) { return(len+= packet_len); }
|
||||
inline void length(ulong length) { len= length; }
|
||||
inline void length(ulong length_arg) { len= length_arg; }
|
||||
inline gptr query()
|
||||
{
|
||||
return (gptr)(((byte*)this)+
|
||||
@@ -156,7 +156,7 @@ struct Query_cache_table
|
||||
|
||||
inline char *db() { return (char *) data(); }
|
||||
inline char *table() { return tbl; }
|
||||
inline void table(char *table) { tbl= table; }
|
||||
inline void table(char *table_arg) { tbl= table_arg; }
|
||||
inline uint32 key_length() { return key_len; }
|
||||
inline void key_length(uint32 len) { key_len= len; }
|
||||
inline uint8 type() { return table_type; }
|
||||
@@ -164,7 +164,7 @@ struct Query_cache_table
|
||||
inline qc_engine_callback callback() { return callback_func; }
|
||||
inline void callback(qc_engine_callback fn){ callback_func= fn; }
|
||||
inline ulonglong engine_data() { return engine_data_buff; }
|
||||
inline void engine_data(ulonglong data) { engine_data_buff= data; }
|
||||
inline void engine_data(ulonglong data_arg){ engine_data_buff= data_arg; }
|
||||
inline gptr data()
|
||||
{
|
||||
return (gptr)(((byte*)this)+
|
||||
|
||||
Reference in New Issue
Block a user