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:
@@ -43,8 +43,9 @@ class Table_triggers_list: public Sql_alloc
|
||||
*/
|
||||
Field **new_field;
|
||||
Field **old_field;
|
||||
|
||||
/* TABLE instance for which this triggers list object was created */
|
||||
TABLE *table;
|
||||
TABLE *trigger_table;
|
||||
/*
|
||||
Names of triggers.
|
||||
Should correspond to order of triggers on definitions_list,
|
||||
@@ -84,7 +85,7 @@ public:
|
||||
List<LEX_STRING> definers_list;
|
||||
|
||||
Table_triggers_list(TABLE *table_arg):
|
||||
record1_field(0), table(table_arg)
|
||||
record1_field(0), trigger_table(table_arg)
|
||||
{
|
||||
bzero((char *)bodies, sizeof(bodies));
|
||||
bzero((char *)trigger_fields, sizeof(trigger_fields));
|
||||
|
||||
Reference in New Issue
Block a user