Compile warning in all builds in insexpand.c (at patchlevel 9.1.1312, not at patchlevel 9.1.1309)

6 views
Skip to first unread message

Tony Mechelynck

unread,
Apr 16, 2025, 3:07:52 PM4/16/25
to cbl...@256bit.org, vim...@googlegroups.com
In function ‘ins_compl_build_pum’,
inlined from ‘ins_compl_show_pum’ at insexpand.c:1668:8,
inlined from ‘ins_compl_show_pum’ at insexpand.c:1654:1:
insexpand.c:1520:52: warning: ‘match_count’ may be used uninitialized
[-Wmaybe-uninitialized]
1520 | if (max_matches > 0 && match_count > max_matches)
| ~~~~~~~~~~~~^~~~~~~~~~~~~
insexpand.c: In function ‘ins_compl_show_pum’:
insexpand.c:1477:17: note: ‘match_count’ was declared here
1477 | int match_count;
| ^~~~~~~~~~~

"gcc --version" answers as follows:
gcc (SUSE Linux) 14.2.1 20250220 [revision
9ffecde121af883b60bbe60d00425036bc873048]
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Best regards,
Tony.

Christian Brabandt

unread,
Apr 16, 2025, 3:16:04 PM4/16/25
to vim...@googlegroups.com
Ah thanks. Will be fixed in v9.1.1313

Thanks,
Christian
--
Just because I turn down a contract on a guy doesn't mean he isn't going
to get hit.
-- Joey
Reply all
Reply to author
Forward
0 new messages