diff options
author | James McCoy <jamessan@jamessan.com> | 2019-04-07 19:50:54 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2019-04-07 20:00:28 -0400 |
commit | b8df2c6ebd96f2cb06e19da909623085d7b23932 (patch) | |
tree | ce03dcbca31b5023d23ef0f66ff3fe36c1981348 /runtime/lua/vim/shared.lua | |
parent | c5e8924f4e72f46679cff52ac075e3eb023883d5 (diff) | |
download | rneovim-b8df2c6ebd96f2cb06e19da909623085d7b23932.tar.gz rneovim-b8df2c6ebd96f2cb06e19da909623085d7b23932.tar.bz2 rneovim-b8df2c6ebd96f2cb06e19da909623085d7b23932.zip |
Make SHM_ALL to a variable instead of a compound literal #define
gcc-9 has [improved compliance] with the C spec for lifetime of compound
literals, tying their lifetime to block scope instead of function scope.
This makes the behavior comparable to all other automatic variables.
Using the SHM_ALL #define instantiated a compound literal local to an if
clause and assigned the address to a "char_u *". Since the pointer was
then being used outside of the if clause, it was using an invalid
address.
[improved compliance]: https://gcc.gnu.org/gcc-9/porting_to.html#complit
Closes #9855
Diffstat (limited to 'runtime/lua/vim/shared.lua')
0 files changed, 0 insertions, 0 deletions