Compile warning in insexpand.c with +eval after applying patches 9.1.189-190

8 views
Skip to first unread message

Tony Mechelynck

unread,
Mar 20, 2024, 3:35:14 PM3/20/24
to Christian Brabandt, vim_dev
For instance in Normal build :

In function ‘get_complete_info’,
inlined from ‘f_complete_info’ at insexpand.c:3175:5:
insexpand.c:3123:31: warning: ‘li’ may be used uninitialized
[-Wmaybe-uninitialized]
3123 | ret = list_append_dict(li, di);
| ^~~~~~~~~~~~~~~~~~~~~~~~
insexpand.c: In function ‘f_complete_info’:
insexpand.c:3095:22: note: ‘li’ was declared here
3095 | list_T *li;
| ^~

Happens also in Huge but not in Tiny. This warning does not prevent linking.
gcc version is 13.2.1 20240206 [revision
67ac78caf31f7cb3202177e6428a46d829b70f23]


Best regards,
Tony.

Christian Brabandt

unread,
Mar 21, 2024, 2:59:34 PM3/21/24
to Tony Mechelynck, vim_dev
I see that in CI as well. I don't understand how this can happen :(

Best,
Christian
--
Meade's Maxim:
Always remember that you are absolutely unique, just like everyone else.
Reply all
Reply to author
Forward
0 new messages