Hi,
When building the latest sources using "-Wall -Wextra -pedantic",
I see the following warning messages in the terminal.c file:
terminal.c:2502:6: warning: variable 'bg_rgb' is used uninitialized whenever
'if' condition is false [-Wsometimes-uninitialized]
if (id != 0)
^~~~~~~
terminal.c:2521:10: note: uninitialized use occurs here
if (bg_rgb == INVALCOLOR)
^~~~~~
terminal.c:2502:2: note: remove the 'if' if its condition is always true
if (id != 0)
^~~~~~~~~~~~
terminal.c:2500:31: note: initialize the variable 'bg_rgb' to silence this
warning
guicolor_T fg_rgb, bg_rgb;
^
= 0
terminal.c:2502:6: warning: variable 'fg_rgb' is used uninitialized whenever
'if' condition is false [-Wsometimes-uninitialized]
if (id != 0)
^~~~~~~
terminal.c:2519:10: note: uninitialized use occurs here
if (fg_rgb == INVALCOLOR)
^~~~~~
terminal.c:2502:2: note: remove the 'if' if its condition is always true
if (id != 0)
^~~~~~~~~~~~
terminal.c:2500:23: note: initialize the variable 'fg_rgb' to silence this
warning
guicolor_T fg_rgb, bg_rgb;
^
= 0
2 warnings generated.
- Yegappan
--
--
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].
For more options, visit https://groups.google.com/d/optout.