Snippets for arj 3.10.22 from FreeBSD 150arm64
Sourced from https://pkg-status.freebsd.org/ampere5/data/latest-per-pkg/arj/3.10.22_12/150arm64-default.log.
-
msgbind.c:452:50: warning: if statement has empty body [-Wempty-body] 452 | if(argv[6][strlen(argv[6])-1]!=PATHSEP_DEFAULT); | ^ -
file_reg.c:57:10: warning: passing '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] 57 | alltrim(regdata+REG_KEY1_SHIFT); | ^~~~~~~~~~~~~~~~~~~~~~ -
decode.c:73:19: warning: passing '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] 73 | garble_decode(&byte_buf, 1); | ^~~~~~~~~ -
decode.c:445:25: warning: passing '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] 445 | if(extraction_stub(dec_text, DICSIZ, action)) | ^~~~~~~~ -
decode.c:473:27: warning: passing '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] 473 | if(extraction_stub(dec_text, DICSIZ, action)) | ^~~~~~~~ -
decode.c:486:19: warning: passing '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] 486 | extraction_stub(dec_text, r, action); | ^~~~~~~~ -
decode.c:568:24: warning: passing '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] 568 | if(extraction_stub(ntext, FDICSIZ, action)) | ^~~~~ -
decode.c:585:25: warning: passing '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] 585 | if(extraction_stub(ntext, FDICSIZ, action)) | ^~~~~ -
decode.c:594:19: warning: passing '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] 594 | extraction_stub(ntext, r, action); | ^~~~~ -
encode.c:1030:26: warning: passing '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] 1030 | if((fetch=fetch_uncomp(tree+tree_el, fetch))==0) | ^~~~~~~~~~~~ -
encode.c:1218:26: warning: passing '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] 1218 | if((fetch=fetch_uncomp(tree+tree_el, fetch))==0) | ^~~~~~~~~~~~ -
encode.c:1584:26: warning: passing '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] 1584 | if((fetch=fetch_uncomp(tree, fetch))==0) | ^~~~ -
arj.c:830:32: warning: passing '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] 830 | is_registered=reg_validation(regdata+REG_KEY1_SHIFT, regdata+REG_KEY2_SHIFT, regdata+REG_NAME_SHIFT, regdata+REG_HDR_SHIFT); | ^~~~~~~~~~~~~~~~~~~~~~ -
arj.c:830:56: warning: passing '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] 830 | is_registered=reg_validation(regdata+REG_KEY1_SHIFT, regdata+REG_KEY2_SHIFT, regdata+REG_NAME_SHIFT, regdata+REG_HDR_SHIFT); | ^~~~~~~~~~~~~~~~~~~~~~ -
arj.c:830:80: warning: passing '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] 830 | is_registered=reg_validation(regdata+REG_KEY1_SHIFT, regdata+REG_KEY2_SHIFT, regdata+REG_NAME_SHIFT, regdata+REG_HDR_SHIFT); | ^~~~~~~~~~~~~~~~~~~~~~ -
arj.c:830:104: warning: passing '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] 830 | is_registered=reg_validation(regdata+REG_KEY1_SHIFT, regdata+REG_KEY2_SHIFT, regdata+REG_NAME_SHIFT, regdata+REG_HDR_SHIFT); | ^~~~~~~~~~~~~~~~~~~~~ -
arj.c:1254:57: warning: passing '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] 1254 | if(!reg_validation(single_spc, single_spc, single_spc, regdata+REG_HDR_SHIFT)) | ^~~~~~~~~~~~~~~~~~~~~ -
fardata.c:667:23: warning: second argument to 'va_arg' is of promotable type 'short'; this va_arg has undefined behavior because arguments will be promoted to 'int' [-Wvarargs] 667 | num=va_arg(args, short); | ^~~~~ -
fardata.c:669:23: warning: second argument to 'va_arg' is of promotable type 'unsigned short'; this va_arg has undefined behavior because arguments will be promoted to 'int' [-Wvarargs] 669 | num=va_arg(args, unsigned short); | ^~~~~~~~~~~~~~ -
arj_file.c:1177:48: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1177 | search_offset=t_offset+display_found_text(block, t_offset, block_len)-len; | ^~~~~ -
arj_file.c:1204:15: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1204 | toupper_loc(block, block_len); | ^~~~~ -
arj_file.c:1209:16: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1209 | toupper_loc(search_reserve, reserve_size); | ^~~~~~~~~~~~~~ -
misc.c:480:15: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 480 | toupper_loc(s, strlen(s)); | ^ -
misc.c:809:22: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 809 | flist_array[fblock]=(char FAR *)farmalloc_msg((CFA_BLOCK_SIZE+3)>>2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
arj_proc.c:1155:3: warning: expression result unused [-Wunused-value] 1155 | *rp++; | ^~~~~ -
arj_proc.c:1160:3: warning: expression result unused [-Wunused-value] 1160 | *rp++; | ^~~~~ -
arj_proc.c:1165:3: warning: expression result unused [-Wunused-value] 1165 | *rp++; | ^~~~~ -
arj_proc.c:1170:3: warning: expression result unused [-Wunused-value] 1170 | *rp++; | ^~~~~ -
arjsec_h.c:43:18: warning: passing 'unsigned char[120]' 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] 43 | crc32_for_block(tail, ARJSEC_RECORD_SIZE-4); | ^~~~ -
arjsec_l.c:253:19: warning: passing 'unsigned char[512]' 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] 253 | crc32_for_block(tmp_block, bytes_read); | ^~~~~~~~~ -
decode.c:445:25: warning: passing 'unsigned char[26624]' 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] 445 | if(extraction_stub(dec_text, DICSIZ, action)) | ^~~~~~~~ -
decode.c:473:27: warning: passing 'unsigned char[26624]' 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] 473 | if(extraction_stub(dec_text, DICSIZ, action)) | ^~~~~~~~ -
decode.c:486:19: warning: passing 'unsigned char[26624]' 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] 486 | extraction_stub(dec_text, r, action); | ^~~~~~~~ -
arj_proc.c:2670:8: warning: assigning to 'char *' from 'unsigned char[26624]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2670 | fetch=dec_text; | ^~~~~~~~~ -
arjsfxjr.c:482:14: warning: passing 'unsigned char[26624]' 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] 482 | fwrite_crc(dec_text, fetch_size); | ^~~~~~~~ -
arjsfxjr.c:1035:16: warning: passing 'unsigned char[26624]' 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] 1035 | fwrite_crc(dec_text, DICSIZ); | ^~~~~~~~ -
arjsfxjr.c:1059:18: warning: passing 'unsigned char[26624]' 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] 1059 | fwrite_crc(dec_text, DICSIZ); | ^~~~~~~~ -
arjsfxjr.c:1068:14: warning: passing 'unsigned char[26624]' 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] 1068 | fwrite_crc(dec_text, r); | ^~~~~~~~ -
arjcrypt.c:392:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 392 | codec(gost_encode, exblock_ptr->data, exblock_ptr->len); | ^~~~~~~~~~~~~~~~~ -
arjcrypt.c:396:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 396 | codec(gost_decode, exblock_ptr->data, exblock_ptr->len); | ^~~~~~~~~~~~~~~~~ -
arjcrypt.c:401:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 401 | codec(gost_cipher_proc, exblock_ptr->data, exblock_ptr->len); | ^~~~~~~~~~~~~~~~~ -
rearj.c:1362:31: warning: passing '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] 1362 | is_registered=reg_validation(regdata+REG_KEY1_SHIFT, regdata+REG_KEY2_SHIFT, regdata+REG_NAME_SHIFT, regdata+REG_HDR_SHIFT); | ^~~~~~~~~~~~~~~~~~~~~~ -
rearj.c:1362:55: warning: passing '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] 1362 | is_registered=reg_validation(regdata+REG_KEY1_SHIFT, regdata+REG_KEY2_SHIFT, regdata+REG_NAME_SHIFT, regdata+REG_HDR_SHIFT); | ^~~~~~~~~~~~~~~~~~~~~~ -
rearj.c:1362:79: warning: passing '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] 1362 | is_registered=reg_validation(regdata+REG_KEY1_SHIFT, regdata+REG_KEY2_SHIFT, regdata+REG_NAME_SHIFT, regdata+REG_HDR_SHIFT); | ^~~~~~~~~~~~~~~~~~~~~~ -
rearj.c:1362:103: warning: passing '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] 1362 | is_registered=reg_validation(regdata+REG_KEY1_SHIFT, regdata+REG_KEY2_SHIFT, regdata+REG_NAME_SHIFT, regdata+REG_HDR_SHIFT); | ^~~~~~~~~~~~~~~~~~~~~ -
rearj.c:1372:57: warning: passing '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] 1372 | if(!reg_validation(single_spc, single_spc, single_spc, regdata+REG_HDR_SHIFT)) | ^~~~~~~~~~~~~~~~~~~~~ -
environ.c:2858:9: warning: call to undeclared function 'waitpid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 2858 | rc=waitpid(pid, &status, 0); | ^