Warnings in screen.c in Normal and Huge (not Tiny) after applying patches 9.2.450 to 9.2.452

3 views
Skip to first unread message

Tony Mechelynck

unread,
7:06 PM (2 hours ago) 7:06 PM
to Christian Brabandt, vim_dev
After applying patches 9.2.450 to 9.2.452, I get the following
warnings in Normal and Huge (but not in Tiny with or without GUI).
Build is not halted but proceeds to Link.

In function ‘popup_blend_with_base’,
inlined from ‘screen_line’ at screen.c:772:26:
screen.c:512:28: warning: ‘po.popup_attr’ may be used uninitialized
[-Wmaybe-uninitialized]
512 | int combined = hl_combine_attr(po->popup_attr, char_attr);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
screen.c: In function ‘screen_line’:
screen.c:608:21: note: ‘po.popup_attr’ was declared here
608 | popup_opacity_T po; // cached when drawing
an opacity popup
| ^~
In function ‘popup_blend_with_base’,
inlined from ‘screen_line’ at screen.c:772:26:
screen.c:514:12: warning: ‘po.blend’ may be used uninitialized
[-Wmaybe-uninitialized]
514 | return hl_blend_attr(base_attr, combined, po->blend, blend_fg);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
screen.c: In function ‘screen_line’:
screen.c:608:21: note: ‘po.blend’ was declared here
608 | popup_opacity_T po; // cached when drawing
an opacity popup
| ^~

Best regards,
Tony.
Reply all
Reply to author
Forward
0 new messages