On Sun, 16 Mar 2025, 'John Marriott' via vim_dev wrote:

> After this patch, clang (v20.1.0 on Win11 x64) generates this warning:
> <snip>
> clang -c -I. -Iproto -DWIN32 -DWINVER=0x0A00 -D_WIN32_WINNT=0x0A00
> -DHAVE_PATHDEF -DFEAT_NORMAL -DHAVE_STDINT_H -D__USE_MINGW_ANSI_STDIO -pipe
> -Wall -O3 -fomit-frame-pointer -fpie -fPIE -Db_lto=true -Db_lto_mode=thin
> -DFEAT_GUI_MSWIN -DFEAT_CLIPBOARD filepath.c -o gobjx86-64/filepath.o
> filepath.c:3597:18: warning: passing 'char_u *' (aka 'unsigned char *') to
> parameter of type 'char *' converts between pointers to integer types where
> one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
>  3597 |     vim_snprintf(s, buflen - len, "*.*");
>       |                  ^
> ./proto.h:142:24: note: passing argument to parameter here
>   142 | int vim_snprintf(char *, size_t, const char *, ...)
> ATTRIBUTE_FORMAT_PRINTF(3, 4);
>       |                        ^
> 1 warning generated.
> </snip>
> 
> The attached patch corrects it.


Thanks,
Christian
-- 
My soul is crushed, my spirit sore
I do not like me anymore,
I cavil, quarrel, grumble, grouse,
I ponder on the narrow house
I shudder at the thought of men
I'm due to fall in love again.
                -- Dorothy Parker, "Enough Rope"

-- 
-- 
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 visit 
https://groups.google.com/d/msgid/vim_dev/Z9cShyFUkjDqOUSO%40256bit.org.

Raspunde prin e-mail lui