On Sun, Dec 17, 2023 at 3:26 AM Yegappan Lakshmanan <yegapp...@gmail.com> wrote:
>
> Hi Tony,
>
> On Sat, Dec 16, 2023 at 3:50 PM Tony Mechelynck 
> <antoine.mechely...@gmail.com> wrote:
>>
>> vim9cmds.c: In function ‘compile_defer’:
>> vim9cmds.c:2051:18: warning: ‘type’ may be used uninitialized
>> [-Wmaybe-uninitialized]
>>  2051 |         else if (check_func_args_from_type(cctx, type, argcount, 
>> TRUE,
>>       |                  
>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>  2052 |                     arg_start) == FAIL)
>>       |                     ~~~~~~~~~~
>> vim9cmds.c:2003:18: note: ‘type’ was declared here
>>  2003 |     type_T      *type;
>>       |                  ^~~~
>>
>
> Which environment and compiler are you using? I don't see this warning.  
> "type" is
> initialized at line 2027 and used at line 2051.  We can initialize "type" to 
> NULL at line 2003.
> But I don't think this is necessary.
>
> Regards,
> Yegappan
>
I am using gcc 13.2.1 20231130 on openSUSE Tumbleweed, and I see this
on all +eval configurations. For instance my "normal" build is defined
as follows:

export CONF_OPT_GUI='--enable-gui=motif'
export CONF_OPT_MULTIBYTE='--enable-multibyte'
export CONF_OPT_AUTOSERVE='--enable-autoservername'
export CONF_OPT_SODIUM='--enable-libsodium'
export CONF_OPT_FEAT='--with-features=normal'
export CONF_ARGS2='--with-vim-name=vim-normal'
export CONF_OPT_COMPBY='"--with-compiledby=antoine.mechely...@gmail.com"'

I also compile two different "huge" builds (which get the same error)
and two different "tiny" builds (which don't).

Best regards,
Tony.

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAJkCKXswTcmhvCm%3DNoLzkxu27ysDmcfOEzgPySHvPPwqLcFfsQ%40mail.gmail.com.

Raspunde prin e-mail lui