]> git.proxmox.com Git - libgit2.git/commit - src/array.h
array: mark the array to grow as volatile
authorCarlos Martín Nieto <cmn@dwim.me>
Fri, 25 Jul 2014 06:25:41 +0000 (08:25 +0200)
committerCarlos Martín Nieto <cmn@dwim.me>
Fri, 25 Jul 2014 06:25:41 +0000 (08:25 +0200)
commitb62a6a13b2f9a40e6ea4bf7bc2a9255429fb0bd6
tree431e3c8db1bf31788e22f3a50497b32f5a64e233
parent9746b36cf9a86ba50a666bbc8cc97a37221cb954
array: mark the array to grow as volatile

This works around strict aliasing rules letting some versions of
GCC (particularly on RHEL 6) thinking that they can skip updating the
size of the array when calculating the next element's offset.
src/array.h