Snippets for nvi 1.81.6 from Nix aarch64-darwin
Sourced from https://hydra.nixos.org/log/sn1ld4w10al8z6nxl46555iafh23qxin-nvi-1.81.6.drv.
-
../dist/../common/api.c:439:15: warning: expression which evaluates to zero treated as a null pointer constant of type 'char *' [-Wnon-literal-null-conversion] 439 | value[0] = '\0'; | ^~~~ -
../dist/../ex/ex.c:2124:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] 2124 | else { | ^ -
../dist/../ex/ex_argv.c:663:16: warning: 'vfork' is deprecated: Use posix_spawn or fork [-Wdeprecated-declarations] 663 | switch (pid = vfork()) { | ^ -
../dist/../ex/ex_at.c:65:15: warning: passing 'u_char *' (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] 65 | ex_emsg(sp, KEY_NAME(sp, name), EXM_EMPTYBUF); | ^~~~~~~~~~~~~~~~~~ -
../dist/../ex/ex_bang.c:108:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] 108 | } else if (O_ISSET(sp, O_WARN) && | ^ -
../dist/../ex/ex_cscope.c:382:21: warning: 'vfork' is deprecated: Use posix_spawn or fork [-Wdeprecated-declarations] 382 | switch (csc->pid = vfork()) { | ^ -
../dist/../ex/ex_cscope.c:500:39: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] 500 | (void)fprintf(csc->to_fp, "%d%s\n", search, tqp->tag + 2); | ~~ ^~~~~~ | %zu -
../dist/../ex/ex_cscope.c:822:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] 822 | } else { | ^ -
../dist/../ex/ex_display.c:114:15: warning: passing 'char[15]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 114 | db(sp, cbp, "default buffer"); | ^~~~~~~~~~~~~~~~ -
../dist/../ex/ex_display.c:137:22: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 137 | (void)ex_puts(sp, KEY_NAME(sp, *p)); | ^~~~~~~~~~~~~~~~ -
../dist/../ex/ex_filter.c:98:24: warning: 'vfork' is deprecated: Use posix_spawn or fork [-Wdeprecated-declarations] 98 | switch (utility_pid = vfork()) { | ^ -
../dist/../ex/ex_filter.c:183:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] 183 | else | ^ -
../dist/../ex/ex_global.c:122:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] 122 | else if (p[1] == L('\\')) | ^ -
../dist/../ex/ex_print.c:237:11: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 237 | kp = KEY_NAME(sp, ch); | ^ ~~~~~~~~~~~~~~~~ -
../dist/../ex/ex_script.c:786:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 786 | sscr_pty(amaster, aslave, name, termp, winp) | ^ -
../dist/../ex/ex_shell.c:114:16: warning: 'vfork' is deprecated: Use posix_spawn or fork [-Wdeprecated-declarations] 114 | switch (pid = vfork()) { | ^ -
../dist/../ex/ex_subst.c:125:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] 125 | else if (p[1] == '\\') | ^ -
../dist/../ex/ex_txt.c:394:10: warning: unsequenced modification and access to 'scno' [-Wunsequenced] 394 | scno -= --scno % sw; | ~~ ^ -
../dist/../ex/ex_visual.c:84:21: warning: format specifies type 'unsigned long' but the argument has type 'db_recno_t' (aka 'unsigned int') [-Wformat] 84 | "%luz%c%lu", sp->lno, pos, cmdp->count); | ~~~ ^~~~~~~ | %u -
../dist/../ex/ex_visual.c:86:46: warning: format specifies type 'unsigned long' but the argument has type 'db_recno_t' (aka 'unsigned int') [-Wformat] 86 | len = snprintf(buf, sizeof(buf), "%luz%c", sp->lno, pos); | ~~~ ^~~~~~~ | %u -
../dist/../common/key.c:210:10: warning: assigning to 'char *' from 'u_char[5]' (aka 'unsigned char[5]') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 210 | for (p = gp->cname[ch].name, t = v_key_name(sp, ch), | ^ ~~~~~~~~~~~~~~~~~~ -
../dist/../common/key.c:210:34: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 210 | for (p = gp->cname[ch].name, t = v_key_name(sp, ch), | ^ ~~~~~~~~~~~~~~~~~~ -
../dist/../common/key.c:302:21: warning: assigning to 'char *' from 'u_int8_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 302 | for (len = 2, chp = (u_int8_t *)&ch, | ^ ~~~~~~~~~~~~~~~ -
../dist/../common/db.c:643:11: warning: enumeration value 'LINE_APPEND' not handled in switch [-Wswitch] 643 | switch (op) { | ^~ -
../dist/../common/db.c:656:11: warning: enumeration values 'LINE_APPEND' and 'LINE_RESET' not handled in switch [-Wswitch] 656 | switch (op) { | ^~ -
../dist/../common/mark.c:226:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 226 | } else | ^ -
../dist/../common/msg.c:917:10: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 917 | for (t = KEY_NAME(sp, *cp); *t != '\0' && p < ep; *p++ = *t++); | ^ ~~~~~~~~~~~~~~~~~ -
../dist/../common/options.c:359:2: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 359 | OI(O_ESCAPETIME, L("escapetime=3")); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
../dist/../common/options.c:360:2: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 360 | OI(O_KEYTIME, L("keytime=6")); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
../dist/../common/options.c:361:2: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 361 | OI(O_MATCHTIME, L("matchtime=7")); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
../dist/../common/options.c:364:2: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 364 | OI(O_REPORT, L("report=5")); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
../dist/../common/options.c:365:2: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 365 | OI(O_PARAGRAPHS, L("paragraphs=IPLPPPQPP LIpplpipbp")); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
../dist/../common/options.c:370:2: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 370 | OI(O_SECTIONS, L("sections=NHSHH HUnhsh")); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
../dist/../common/options.c:374:2: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 374 | OI(O_SHELLMETA, L("shellmeta=~{[*?$`'\"\\")); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
../dist/../common/options.c:375:2: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 375 | OI(O_SHIFTWIDTH, L("shiftwidth=8")); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
../dist/../common/options.c:376:2: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 376 | OI(O_SIDESCROLL, L("sidescroll=16")); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
../dist/../common/options.c:377:2: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 377 | OI(O_TABSTOP, L("tabstop=8")); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
../dist/../common/options.c:585:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 585 | } else | ^ -
../dist/../common/put.c:53:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] 53 | } else { | ^ -
../dist/../common/seq.c:285:23: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 285 | len += ex_puts(sp, KEY_NAME(sp, *p)); | ^~~~~~~~~~~~~~~~ -
../dist/../common/seq.c:292:24: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 292 | len += ex_puts(sp, KEY_NAME(sp, *p)); | ^~~~~~~~~~~~~~~~ -
../dist/../common/seq.c:301:23: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 301 | (void)ex_puts(sp, KEY_NAME(sp, *p)); | ^~~~~~~~~~~~~~~~ -
../dist/../vi/v_at.c:69:15: warning: passing 'u_char *' (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] 69 | ex_emsg(sp, KEY_NAME(sp, name), EXM_EMPTYBUF); | ^~~~~~~~~~~~~~~~~~ -
../dist/../vi/v_paragraph.c:93:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] 93 | else { | ^ -
../dist/../vi/v_paragraph.c:241:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] 241 | } else | ^ -
../dist/../vi/v_section.c:87:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] 87 | else { | ^ -
../dist/../vi/v_sentence.c:351:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] 351 | } else | ^ -
../dist/../vi/v_txt.c:1567:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1567 | else | ^ -
../dist/../vi/v_txt.c:1921:13: warning: unsequenced modification and access to 'target' [-Wunsequenced] 1921 | target -= --target % sw; | ~~ ^ -
../dist/../vi/v_txt.c:2297:12: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2297 | for (kp = KEY_NAME(sp, tp->lb[cno]), | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ -
../dist/../vi/v_txt.c:2492:14: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2492 | for (kp = | ^ 2493 | KEY_NAME(sp, tp->lb[cno]) + nlen, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
../dist/../vi/vi.c:171:16: warning: passing 'u_char *' (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] 171 | ex_emsg(sp, KEY_NAME(sp, vp->key), EXM_SECURE); | ^~~~~~~~~~~~~~~~~~~~~ -
../dist/../vi/vi.c:555:14: warning: passing 'u_char *' (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] 555 | v_emsg(sp, KEY_NAME(sp, key), VIM_NOCOM); | ^~~~~~~~~~~~~~~~~ -
../dist/../vi/vi.c:593:15: warning: passing 'u_char *' (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] 593 | v_emsg(sp, KEY_NAME(sp, key), | ^~~~~~~~~~~~~~~~~ -
../dist/../vi/vs_line.c:142:37: warning: format specifies type 'unsigned long' but the argument has type 'db_recno_t' (aka 'unsigned int') [-Wformat] 142 | sizeof(cbuf), O_NUMBER_FMT, smp->lno); | ~~~~~~~~~~~~ ^~~~~~~~ -
../dist/../vi/vs_line.c:187:10: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 187 | KEY_NAME(sp, ch), KEY_LEN(sp, ch)); | ^~~~~~~~~~~~~~~~ -
../dist/../vi/vs_line.c:183:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] 183 | } else | ^ -
../dist/../vi/vs_line.c:444:13: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 444 | for (kp = KEY_NAME(sp, ch) + offset_in_char; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
../dist/../vi/vs_line.c:466:12: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 466 | for (kp = KEY_NAME(sp, '$'); chlen--;) | ^ ~~~~~~~~~~~~~~~~~ -
../dist/../vi/vs_line.c:535:52: warning: format specifies type 'unsigned long' but the argument has type 'db_recno_t' (aka 'unsigned int') [-Wformat] 535 | len = snprintf(nbuf, sizeof(nbuf), O_NUMBER_FMT, smp->lno); | ~~~~~~~~~~~~ ^~~~~~~~ -
../dist/../vi/vs_msg.c:249:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] 249 | } else | ^ -
../dist/../vi/vs_msg.c:280:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] 280 | } else | ^ -
../dist/../vi/vs_msg.c:347:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] 347 | else { | ^ -
../dist/../vi/vs_msg.c:478:12: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 478 | for (kp = KEY_NAME(sp, ch); chlen--;) | ^ ~~~~~~~~~~~~~~~~ -
../dist/../vi/vs_msg.c:895:58: warning: for loop has empty body [-Wempty-body] 895 | for (; mp_c->q.le_next != NULL; mp_c = mp_c->q.le_next); | ^ -
../dist/../vi/vs_refresh.c:236:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] 236 | } else if (LNO > TMAP->lno) { | ^ -
../dist/../vi/vs_refresh.c:377:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] 377 | } else | ^ -
../dist/../vi/vs_refresh.c:386:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] 386 | } else | ^ -
../dist/../vi/vs_refresh.c:798:9: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 798 | KEY_NAME(sp, '.'), KEY_LEN(sp, '.')); | ^~~~~~~~~~~~~~~~~ -
../dist/../vi/vs_refresh.c:800:8: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 800 | KEY_NAME(sp, ' '), KEY_LEN(sp, ' ')); | ^~~~~~~~~~~~~~~~~ -
../dist/../vi/vs_refresh.c:804:8: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 804 | KEY_NAME(sp, *p), KEY_LEN(sp, *p)); | ^~~~~~~~~~~~~~~~ -
../dist/../vi/vs_refresh.c:825:45: warning: format specifies type 'unsigned long' but the argument has type 'db_recno_t' (aka 'unsigned int') [-Wformat] 825 | snprintf(buf, sizeof(buf), "%lu,%lu", sp->lno, curcol + 1); | ~~~ ^~~~~~~ | %u -
../dist/../vi/vs_refresh.c:857:9: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 857 | KEY_NAME(sp, '*'), KEY_LEN(sp, '*')); | ^~~~~~~~~~~~~~~~~ -
../dist/../vi/vs_relative.c:163:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] 163 | TAB_RESET; | ^ -
../dist/../vi/vs_relative.c:170:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] 170 | TAB_RESET; | ^ -
../dist/../vi/vs_relative.c:289:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] 289 | TAB_RESET; | ^ -
../dist/../regex/engine.c:139:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | matcher(g, string, nmatch, pmatch, eflags) | ^ -
../dist/../regex/engine.c:305:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 305 | dissect(m, start, stop, startst, stopst) | ^ -
../dist/../regex/engine.c:493:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 493 | backref(m, start, stop, startst, stopst, lev) | ^ -
../dist/../regex/engine.c:689:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 689 | } | ^ -
../dist/../regex/engine.c:697:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 697 | fast(m, start, stop, startst, stopst) | ^ -
../dist/../regex/engine.c:788:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 788 | slow(m, start, stop, startst, stopst) | ^ -
../dist/../regex/engine.c:884:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 884 | step(g, start, stop, bef, ch, aft) | ^ -
../dist/../cl/cl_term.c:428:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] 428 | else | ^ -
../dist/../cl/cl_term.c:433:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] 433 | else | ^