[MDEV-17542] 10.3: gcc-8.0 produces lots of -Wclass-memaccess warnings in Table_scope_and_contents_source_st Created: 2018-10-25 Updated: 2018-10-25 Resolved: 2018-10-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Affects Version/s: | 10.3, 10.4 |
| Fix Version/s: | 10.3.11, 10.4.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
gcc-8.0 has a new warning when a class or struct with a constructor is bzero'd. A lot of warnings if this kind are generated by this method:
This structure has non-trivial members:
which have constructors. So bzero'ing is not indeed logically correct. Moveover, the constructor of SQL_I_LIST does more than just bzero. This should be fixed. |