aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin/python.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2026-06-29 08:27:45 +0800
committerGitHub <noreply@github.com>2026-06-29 00:27:45 +0000
commit204774c1e25df994bfe4bd216a461c893894f3b3 (patch)
treecbf3940fd85c7c8349b3254bc99e47759185376c /runtime/ftplugin/python.vim
parent84cd87908e81da33c8daa5646668939d7ea6afa7 (diff)
downloadrneovim-204774c1e25df994bfe4bd216a461c893894f3b3.tar.gz
rneovim-204774c1e25df994bfe4bd216a461c893894f3b3.tar.bz2
rneovim-204774c1e25df994bfe4bd216a461c893894f3b3.zip
vim-patch:9.2.0743: string macros silently accept a size of the wrong type (#40470)
Problem: Several string and memory wrapper macros cast their size argument to size_t although the wrapped function's prototype already declares that parameter size_t; such casts silence the warning a compiler would otherwise give when a value of the wrong type, such as a pointer, is passed as the size. Solution: Where the wrapped function's prototype already declares the parameter size_t, remove the cast so that a size argument of the wrong type can be reported at compile time (K.Takata, Shane Harper). From gcc 14 on, -Wint-conversion is an error by default. With gcc, passing a signed value where size_t is expected triggers -Wsign-conversion, but the check is off by default and the build already emits many such warnings. related: vim/vim#20642 closes: vim/vim#20656 https://github.com/vim/vim/commit/7f122f9effba51adc107909b8ca4d9b220c2bfaf Co-authored-by: Shane Harper <shane@shaneharper.net> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'runtime/ftplugin/python.vim')
0 files changed, 0 insertions, 0 deletions