diff options
author | Eliseo Martínez <eliseomarmol@gmail.com> | 2014-11-17 09:31:54 +0100 |
---|---|---|
committer | Eliseo Martínez <eliseomarmol@gmail.com> | 2014-11-18 21:57:49 +0100 |
commit | ece19651c60c34e2fa5bed623dff82b9af4d8e11 (patch) | |
tree | c423f04ba00af46a3c38012becf557e83f211bff /src/nvim/api/vim.c | |
parent | be90cdf4f9891ebd6cdf6b2ec6c34f3bcf465643 (diff) | |
download | rneovim-ece19651c60c34e2fa5bed623dff82b9af4d8e11.tar.gz rneovim-ece19651c60c34e2fa5bed623dff82b9af4d8e11.tar.bz2 rneovim-ece19651c60c34e2fa5bed623dff82b9af4d8e11.zip |
Fix warnings: eval.c: item_compare(): Garbage value: MI.
Problem : Result of operation is garbage or undefined @ 13565.
Diagnostic : Multithreading issue.
Rationale : Problem occurs only if global (static) variable
`item_compare_keep_zero` changes after being used by
`do_sort_uniq` but before being used by `item_compare` or
`item_compare2`.
Resolution : This is not an intra-function problem, as other MI's
before, but rather an inter-function one. Thus, it can't be
solved by using local copy of global. Therefore, we are
forced to do a bit refactoring. We can't simply add a bool
param to item_compare/item_compare2, as they couldn't be
passed to qsort() that way. So, item_compare/item_compare2
are added a bool param and curried versions of them are
added and used in their place.
Diffstat (limited to 'src/nvim/api/vim.c')
0 files changed, 0 insertions, 0 deletions