On 31/08/2018 01:37, Tom Lane wrote: > The fact that some of these are pretty old and we've not noticed is > not good. It suggests that we don't currently have any compilers in the > buildfarm that under-align char[] arrays on the stack, which seems like > a gotcha waiting to bite us. I wonder if there is any way to persuade > some compiler on a non-Intel box to do that.
-Wcast-align=strict (requires gcc-8) warns about the issue in pg_verify_checksums.c, but also about a handful^W^W15211 other things, so it wouldn't be immediately useful. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services