[MDEV-11849] Fix storage/innobase/* compile warnings Created: 2017-01-20 Updated: 2018-01-13 Resolved: 2017-01-26 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.2 |
| Fix Version/s: | 10.2.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Jan Lindström (Inactive) | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | 10.2-ga | ||
| Issue Links: |
|
||||||||
| Comments |
| Comment by Jan Lindström (Inactive) [ 2017-01-20 ] | |||||||||||||||||
|
http://lists.askmonty.org/pipermail/commits/2017-January/010472.html | |||||||||||||||||
| Comment by Jan Lindström (Inactive) [ 2017-01-20 ] | |||||||||||||||||
|
Windows: http://lists.askmonty.org/pipermail/commits/2017-January/010473.html | |||||||||||||||||
| Comment by Marko Mäkelä [ 2017-01-25 ] | |||||||||||||||||
|
I am not happy to see so many new type casts. Is there any other solution? The following is ignoring the high-order 32 bits of the field on 32-bit systems:
Maybe we should use mach_read_from_4() from offset +4 instead?
Maybe it would be better to remove the MY_ATTRIBUTE((warn_unused_result)) if that was the reason for this change, or to change the API otherwise. | |||||||||||||||||
| Comment by Jan Lindström (Inactive) [ 2017-01-25 ] | |||||||||||||||||
|
Buildbot results bb-10.2-mdev11849, I can try to avoid some of the casts by changing the variable type, but that does not work for all of these. | |||||||||||||||||
| Comment by Jan Lindström (Inactive) [ 2017-01-26 ] | |||||||||||||||||
|
commit 71495a1748784a887f42888a2a7b8cac5e088ff6 |