diff options
author | James McCoy <jamessan@jamessan.com> | 2019-04-07 19:50:54 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-04-12 02:43:59 +0200 |
commit | 1793ba81762f5b3ba3e10357b490cf4165aafcea (patch) | |
tree | f498dcdfa46dce651bd8509f8926b5ff0e621794 /scripts/gen_api_vimdoc.py | |
parent | 947069ba1438e9d13e2db30f2aeaa05824c876d2 (diff) | |
download | rneovim-1793ba81762f5b3ba3e10357b490cf4165aafcea.tar.gz rneovim-1793ba81762f5b3ba3e10357b490cf4165aafcea.tar.bz2 rneovim-1793ba81762f5b3ba3e10357b490cf4165aafcea.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 'scripts/gen_api_vimdoc.py')
0 files changed, 0 insertions, 0 deletions