Yegappan wrote:

> I am seeing the following compiler warning in userfunc.c:
> 
> userfunc.c: In function ‘ex_function’:
> userfunc.c:2612:3: warning: ‘%s’ directive argument is null
> [-Wformat-overflow=]
>  2612 |   semsg(_("E1056: expected a type: %s"), ret_type);
>       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> The ret_type variable is set to NULL just before this line.

I've been testing only with the error number, perhaps I should make it a
habit to test more of the message.

-- 
hundred-and-one symptoms of being an internet addict:
6. You refuse to go to a vacation spot with no electricity and no phone lines.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202004232024.03NKOJmZ004537%40masaka.moolenaar.net.

Raspunde prin e-mail lui