John Marriott wrote:
> >> On 23-Dec-2021 05:20, Bram Moolenaar wrote: > >>> Patch 8.2.3871 > >>> Problem: List.c contains code for dict and blob. > >>> Solution: Refactor to put code where it belongs. (Yegappan Lakshmanan, > >>> closes #9386) > >>> Files: src/blob.c, src/dict.c, src/list.c, src/proto/blob.pro, > >>> src/proto/dict.pro, src/proto/list.pro, > >>> src/proto/strings.pro, > >>> src/strings.c, src/structs.h, > >>> src/testdir/test_filter_map.vim, > >>> src/testdir/test_listdict.vim, src/testdir/test_sort.vim > >>> > >>> > > Is that because of the "actually longer" thing? > Yeah I think so. > > Any idea how to avoid the error? > > > > The attached patch changes dictitem_alloc() to use the same mechanism as > dictitem_copy() just below it. > > What do you think? If this avoids the warning then it's fine. Thanks for the patch. -- % cat /usr/include/real_life.h void life(void); /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/20211222203038.E22421C0641%40moolenaar.net.
