PVS-studio analysis results

www.viva64.com/en/w:1:1: error: Help: The documentation for all analyzer warnings is available here: https://www.viva64.com/en/w/.
/usr/local/clang-5.0.0/lib/clang/5.0.0/include/stddef.h:62:1: warning: V677 Custom declaration of a standard 'size_t' type. The declaration from system header files should be used instead.
/usr/local/clang-5.0.0/lib/clang/5.0.0/include/stddef.h:90:1: warning: V677 Custom declaration of a standard 'wchar_t' type. The declaration from system header files should be used instead.
/usr/local/clang-5.0.0/lib/clang/5.0.0/include/stdarg.h:30:1: warning: V677 Custom declaration of a standard 'va_list' type. The declaration from system header files should be used instead.
/usr/local/clang-5.0.0/lib/clang/5.0.0/include/stddef.h:51:1: warning: V677 Custom declaration of a standard 'ptrdiff_t' type. The declaration from system header files should be used instead.
/usr/local/clang-5.0.0/lib/clang/5.0.0/include/stddef.h:132:1: warning: V677 Custom declaration of a standard 'wint_t' type. The declaration from system header files should be used instead.
./src/nvim/cursor.c:390:1: warning: V560 A part of conditional expression is always true: win->w_cursor.coladd > 0.
./src/nvim/indent.c:547:1: warning: V547 Expression 'inde_copy != NULL' is always true.
./src/nvim/ops.c:3411:1: warning: V1019 Compound assignment expression 'n -= ptr2cells(p)' is used inside condition.
./src/nvim/quickfix.c:4979:1: warning: V560 A part of conditional expression is always false: qi != save_qi.
./src/nvim/regexp.c:4289:1: warning: V560 A part of conditional expression is always true: status != 1.
./src/nvim/regexp.c:5173:1: warning: V560 A part of conditional expression is always true: (((int) * (p))) <= 48 + 30.
./src/nvim/regexp.c:5202:1: warning: V560 A part of conditional expression is always true: (((int) * (p))) <= 48 + 30.
./src/nvim/regexp.c:5230:1: warning: V560 A part of conditional expression is always true: (((int) * (p))) <= 48 + 30.
./src/nvim/regexp.c:5259:1: warning: V560 A part of conditional expression is always true: (((int) * (p))) <= 48 + 30.
./src/nvim/regexp.c:5289:1: warning: V560 A part of conditional expression is always true: (((int) * (p))) <= 48 + 30.
./src/nvim/regexp.c:5437:1: warning: V560 A part of conditional expression is always true: (((int) * (p))) <= 48 + 30.
./src/nvim/regexp_nfa.c:4162:1: warning: V557 Array overrun is possible. The value of 'subidx' index could reach 19.
./src/nvim/regexp_nfa.c:4163:1: warning: V557 Array overrun is possible. The value of 'subidx' index could reach 19.
./src/nvim/regexp_nfa.c:4166:1: warning: V557 Array overrun is possible. The value of 'subidx' index could reach 19.
./src/nvim/regexp_nfa.c:4167:1: warning: V557 Array overrun is possible. The value of 'subidx' index could reach 19.
./src/nvim/regexp_nfa.c:4170:1: warning: V557 Array overrun is possible. The value of 'subidx' index could reach 19.
./src/nvim/regexp_nfa.c:4183:1: warning: V557 Array overrun is possible. The value of 'subidx' index could reach 19.
./src/nvim/regexp_nfa.c:4196:1: warning: V557 Array overrun is possible. The value of 'subidx' index could reach 19.
./src/nvim/regexp_nfa.c:4199:1: warning: V557 Array overrun is possible. The value of 'subidx' index could reach 19.
./src/nvim/regexp_nfa.c:4250:1: warning: V557 Array overrun is possible. The value of 'subidx' index could reach 19.
./src/nvim/regexp_nfa.c:4252:1: warning: V557 Array overrun is possible. The value of 'subidx' index could reach 19.
./src/nvim/regexp_nfa.c:4253:1: warning: V557 Array overrun is possible. The value of 'subidx' index could reach 19.
./src/nvim/regexp_nfa.c:4255:1: warning: V557 Array overrun is possible. The value of 'subidx' index could reach 19.
./src/nvim/regexp_nfa.c:4256:1: warning: V557 Array overrun is possible. The value of 'subidx' index could reach 19.
./src/nvim/regexp_nfa.c:4262:1: warning: V557 Array overrun is possible. The value of 'subidx' index could reach 19.
./src/nvim/regexp_nfa.c:4263:1: warning: V557 Array overrun is possible. The value of 'subidx' index could reach 19.
./src/nvim/regexp_nfa.c:4277:1: warning: V557 Array overrun is possible. The value of 'subidx' index could reach 19.
./src/nvim/regexp_nfa.c:4280:1: warning: V557 Array overrun is possible. The value of 'subidx' index could reach 19.
./src/nvim/screen.c:2477:1: warning: V560 A part of conditional expression is always false: line_attr != 0.
./src/nvim/screen.c:6013:1: warning: V560 A part of conditional expression is always false: new_ScreenLines == NULL.
./src/nvim/screen.c:6014:1: warning: V560 A part of conditional expression is always false: new_ScreenAttrs == NULL.
./src/nvim/screen.c:6015:1: warning: V560 A part of conditional expression is always false: new_LineOffset == NULL.
./src/nvim/screen.c:6016:1: warning: V560 A part of conditional expression is always false: new_LineWraps == NULL.
./src/nvim/screen.c:6017:1: warning: V560 A part of conditional expression is always false: new_tab_page_click_defs == NULL.
./src/nvim/strings.c:604:1: error: V568 It's odd that 'sizeof()' operator evaluates the size of a pointer to a class, but not the size of the 'tvs[0].vval.v_list' class object.
./src/nvim/strings.c:604:1: error: V568 It's odd that 'sizeof()' operator evaluates the size of a pointer to a class, but not the size of the 'tvs[0].vval.v_dict' class object.
./src/nvim/strings.c:604:1: error: V568 It's odd that 'sizeof()' operator evaluates the size of a pointer to a class, but not the size of the 'tvs[0].vval.v_partial' class object.
./src/nvim/tui/tui.c:1009:1: warning: V751 Parameter 'cols' is not used inside function body.
./src/nvim/viml/parser/expressions.c:2853:1: error: V547 Expression 'want_node == kENodeOperator' is always true.
./src/nvim/window.c:4344:1: warning: V547 Expression 'height > room + room_cmdline' is always true.