[MDEV-26852] Spider: -Werror=maybe-uninitialized raises on spd_sys_table.cc and ha_spider.cc Created: 2021-10-18 Updated: 2022-09-26 Resolved: 2022-09-26 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Spider |
| Affects Version/s: | 10.2, 10.3, 10.4, 10.5, 10.6 |
| Fix Version/s: | 10.3.37, 10.4.27, 10.5.18, 10.6.11, 10.7.7, 10.8.6, 10.9.4, 10.10.2, 10.11.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Nayuta Yanagisawa (Inactive) | Assignee: | Nayuta Yanagisawa (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
When compiling Spider with 10.6, I got these errors:
That is with GCC 11, CMAKE_BUILD_TYPE=Debug and CMAKE_CXX_FLAGS=-Og. — On 10.3, I got the following:
|
| Comments |
| Comment by Nayuta Yanagisawa (Inactive) [ 2021-10-18 ] | |||||||||||||||||||||||||||
|
A possible fix proposed by marko is the following:
| |||||||||||||||||||||||||||
| Comment by Nayuta Yanagisawa (Inactive) [ 2021-10-19 ] | |||||||||||||||||||||||||||
|
holyfoot Please review: https://github.com/MariaDB/server/commit/0aee34bb3cf2de502304b7694a5b2b785fe30338 | |||||||||||||||||||||||||||
| Comment by Nayuta Yanagisawa (Inactive) [ 2021-12-24 ] | |||||||||||||||||||||||||||
|
holyfoot Please check the last comments by marko and me. What do you think? | |||||||||||||||||||||||||||
| Comment by Nayuta Yanagisawa (Inactive) [ 2022-09-26 ] | |||||||||||||||||||||||||||
|
https://github.com/MariaDB/server/commit/fb60f5e7d9e2006986b4c89a4c3d877dab35cfc9 | |||||||||||||||||||||||||||
| Comment by Alexey Botchkov [ 2022-09-26 ] | |||||||||||||||||||||||||||
|
Ok, i'm fine with this patch | |||||||||||||||||||||||||||
| Comment by Nayuta Yanagisawa (Inactive) [ 2022-09-26 ] | |||||||||||||||||||||||||||
|
OK. Thank you for the review. | |||||||||||||||||||||||||||
| Comment by Nayuta Yanagisawa (Inactive) [ 2022-09-26 ] | |||||||||||||||||||||||||||
|
The patch for 10.5+ for the conflict resolution: https://github.com/MariaDB/server/commit/b83da40b9a5dfc5a76cdb21a3261261e9cbde4fe (cc: marko) |