John Marriott wrote:
> Compiling 8.1.22 with the new gcc 8.1 (mingw64) removes the warnings
> about signed overflow that have been around since gcc 7.1.
>
> But it's not all good news, I have a few new warnings. This one in vim
> proper:
> <snip>
> gcc -c -Iproto -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603
> -DHAVE_PATHDEF -DFEAT_NORMAL -DHAVE_STDINT_H -DFEAT_MBYTE -pipe
> -march=native -Wall -O3 -fomit-frame-pointer -freg-struct-return -s
> memline.c -o objnative/memline.o
> In file included from memline.c:45:
> memline.c: In function 'ml_open':
> vim.h:1577:29: warning: 'strncpy' output truncated before terminating
> nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
> #define STRNCPY(d, s, n) strncpy((char *)(d), (char *)(s), (size_t)(n))
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> vim.h:1577:29: note: in definition of macro 'STRNCPY'
> #define STRNCPY(d, s, n) strncpy((char *)(d), (char *)(s), (size_t)(n))
> ^~~~~~~
> </snip>
Hmm, that's not an error or even slightly wrong. In this case we can
avoid it by using mch_memmove().
> ...and these in dosinst and uninstal:
Those look bogus. I suggest you file a bug with gcc.
--
The only way the average employee can speak to an executive is by taking a
second job as a golf caddie.
(Scott Adams - The Dilbert principle)
/// 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].
For more options, visit https://groups.google.com/d/optout.