mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 00:08:19 +00:00
fix PVS warnings (#18459)
* fix(PVS/V547): remove ifs that are always true or false * fix(PVS/V560): remove partial conditions that are always true * fix(PVS/V1044): suppress warning about loop break conditions * fix(PVS/V1063): suppress "modulo by 1 operation is meaningless" * fix(PVS/V568): suppress "operator evaluates the size of a pointer" Also mark vim-patch:8.2.4958 as ported.
This commit is contained in:
@@ -1541,6 +1541,7 @@ void vim_str2nr(const char_u *const start, int *const prep, int *const len, cons
|
||||
|
||||
// Do the conversion manually to avoid sscanf() quirks.
|
||||
abort(); // Should’ve used goto earlier.
|
||||
// -V:PARSE_NUMBER:560
|
||||
#define PARSE_NUMBER(base, cond, conv) \
|
||||
do { \
|
||||
const char *const after_prefix = ptr; \
|
||||
|
Reference in New Issue
Block a user