Commit d4b1ddc
committed
Bug#29955295 NDBCLUSTER FUNCTION PARAMETER SHADOWS HANDLER::TABLE
Compiler warning showing that the parameter "table" of functions ha_ndbcluster::unpack_record_and_set_generated_fields() and ha_ndbcluster::get_partition_row_type() hides the handler::table member. /home/mblaudd/mysql/trunk/sql/ha_ndbcluster.cc:7094:10: warning: parameter 'table' shadows member inherited from type 'handler' [-Wshadow-field] TABLE *table, ^ /home/mblaudd/mysql/trunk/sql/handler.h:3990:10: note: declared here TABLE *table; /* The current open table */ ^ /home/mblaudd/mysql/trunk/sql/ha_ndbcluster.cc:16609:22: warning: parameter 'table' shadows member inherited from type 'handler' [-Wshadow-field] const dd::Table *table MY_ATTRIBUTE((unused)), ^ /home/mblaudd/mysql/trunk/sql/handler.h:3990:10: note: declared here TABLE *table; /* The current open table */ ^ Fix ha_ndbcluster::unpack_record_and_set_generated_fields() by removing parameter and use handler::table directly. Fix ha_ndbcluster::get_partition_row_type() by renaming the dd::Table parameter to "table_def" like in other functions taking a dd::Table. Also fix same problem in ha_ndbcluster::get_fk_data_for_truncate() by renameing parameter to "ndbtab". Change-Id: I623e967da6f6ca9e623667db0c30ec9790eb3a871 parent d4dfbbd commit d4b1ddc
3 files changed
+9
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2599 | 2599 | | |
2600 | 2600 | | |
2601 | 2601 | | |
2602 | | - | |
| 2602 | + | |
| 2603 | + | |
2603 | 2604 | | |
2604 | 2605 | | |
2605 | 2606 | | |
2606 | 2607 | | |
2607 | 2608 | | |
2608 | | - | |
| 2609 | + | |
2609 | 2610 | | |
2610 | 2611 | | |
2611 | 2612 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3715 | 3715 | | |
3716 | 3716 | | |
3717 | 3717 | | |
3718 | | - | |
| 3718 | + | |
3719 | 3719 | | |
3720 | 3720 | | |
3721 | 3721 | | |
| |||
3766 | 3766 | | |
3767 | 3767 | | |
3768 | 3768 | | |
3769 | | - | |
| 3769 | + | |
3770 | 3770 | | |
3771 | 3771 | | |
3772 | 3772 | | |
| |||
7091 | 7091 | | |
7092 | 7092 | | |
7093 | 7093 | | |
7094 | | - | |
7095 | 7094 | | |
7096 | 7095 | | |
7097 | 7096 | | |
| |||
15956 | 15955 | | |
15957 | 15956 | | |
15958 | 15957 | | |
15959 | | - | |
| 15958 | + | |
15960 | 15959 | | |
15961 | 15960 | | |
15962 | 15961 | | |
| |||
16601 | 16600 | | |
16602 | 16601 | | |
16603 | 16602 | | |
16604 | | - | |
16605 | | - | |
16606 | | - | |
16607 | | - | |
16608 | | - | |
16609 | | - | |
16610 | | - | |
| 16603 | + | |
16611 | 16604 | | |
16612 | 16605 | | |
16613 | 16606 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
573 | | - | |
| 573 | + | |
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
| |||
0 commit comments