Snippets for mldonkey 3.1.7.2 from FreeBSD 150amd64
Sourced from https://pkg-status.freebsd.org/beefy23/data/latest-per-pkg/mldonkey/3.1.7.2/150amd64-default.log.
-
wget.c:114:9: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 114 | close(f); | ^ -
wget.c:123:9: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 123 | close(f); | ^ -
wget.c:130:6: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 130 | write(fd, buf, strlen(buf)); | ^ -
wget.c:132:20: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 132 | while((nread = read(fd, buf, 1)) > 0){ | ^ -
wget.c:143:5: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 143 | close(f); | ^ -
src/utils/lib/magiclib_stub.c:49:24: warning: assigning to 'value *' (aka 'long *') from 'const value *' (aka 'const long *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 49 | if (exn == NULL) exn = caml_named_value("Magiclib.Failure"); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/utils/lib/magiclib_stub.c:50:3: warning: "raise_with_string" is deprecated: use "caml_raise_with_string" instead [-W#pragma-messages] 50 | raise_with_string(*exn, (char *) msg); | ^ -
src/utils/lib/magiclib_stub.c:63:7: warning: "raise_out_of_memory" is deprecated: use "caml_raise_out_of_memory" instead [-W#pragma-messages] 63 | raise_out_of_memory(); | ^ -
src/utils/lib/magiclib_stub.c:75:41: warning: "raise_out_of_memory" is deprecated: use "caml_raise_out_of_memory" instead [-W#pragma-messages] 75 | if ((errmsg = malloc(len)) == NULL) raise_out_of_memory(); | ^ -
src/utils/lib/magiclib_stub.c:81:27: warning: "raise_out_of_memory" is deprecated: use "caml_raise_out_of_memory" instead [-W#pragma-messages] 81 | if (errmsg == NULL) raise_out_of_memory(); | ^ -
src/utils/lib/magiclib_stub.c:86:5: warning: "raise_sys_error" is deprecated: use "caml_raise_sys_error" instead [-W#pragma-messages] 86 | raise_sys_error(copy_string(errmsg)); | ^ -
src/utils/lib/magiclib_stub.c:86:21: warning: "copy_string" is deprecated: use "caml_copy_string" instead [-W#pragma-messages] 86 | raise_sys_error(copy_string(errmsg)); | ^ -
src/utils/lib/magiclib_stub.c:141:7: warning: "alloc_custom" is deprecated: use "caml_alloc_custom" instead [-W#pragma-messages] 141 | c = ALLOC_COOKIE; | ^ -
src/utils/lib/magiclib_stub.c:148:43: warning: "raise_out_of_memory" is deprecated: use "caml_raise_out_of_memory" instead [-W#pragma-messages] 148 | if ((errmsg = malloc(len)) == NULL) raise_out_of_memory(); | ^ -
src/utils/lib/magiclib_stub.c:153:54: warning: "raise_out_of_memory" is deprecated: use "caml_raise_out_of_memory" instead [-W#pragma-messages] 153 | if ((errmsg = realloc(errmsg, len)) == NULL) raise_out_of_memory(); | ^ -
src/utils/lib/magiclib_stub.c:158:7: warning: "raise_sys_error" is deprecated: use "caml_raise_sys_error" instead [-W#pragma-messages] 158 | raise_sys_error(copy_string(errmsg)); | ^ -
src/utils/lib/magiclib_stub.c:158:23: warning: "copy_string" is deprecated: use "caml_copy_string" instead [-W#pragma-messages] 158 | raise_sys_error(copy_string(errmsg)); | ^ -
src/utils/lib/magiclib_stub.c:181:23: warning: "invalid_argument" is deprecated: use "caml_invalid_argument" instead [-W#pragma-messages] 181 | if (cookie == NULL) invalid_argument("Magiclib.file"); | ^ -
src/utils/lib/magiclib_stub.c:185:14: warning: "copy_string" is deprecated: use "caml_copy_string" instead [-W#pragma-messages] 185 | CAMLreturn(copy_string(ans)); | ^ -
src/utils/lib/magiclib_stub.c:198:14: warning: "copy_string" is deprecated: use "caml_copy_string" instead [-W#pragma-messages] 198 | CAMLreturn(copy_string(ans)); | ^ -
src/daemon/common/commonHasher_c.c:83:1: warning: passing 'unsigned char[131072]' 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] 83 | COMPLETE_HASH(sha1,SHA1_CTX,sha1_begin,sha1_hash, sha1_end) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/daemon/common/commonHasher_c.c:84:1: warning: passing 'unsigned char[131072]' 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] 84 | COMPLETE_HASH(md5,md5_state_t,md5_init,md5_append,md5_finish) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/daemon/common/commonHasher_c.c:85:1: warning: passing arguments to 'MD4Init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | COMPLETE_HASH(md4,MD4_CTX,MD4Init,MD4Update,md4_finish) | ^ -
src/daemon/common/commonHasher_c.c:85:1: warning: passing 'unsigned char[131072]' 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] 85 | COMPLETE_HASH(md4,MD4_CTX,MD4Init,MD4Update,md4_finish) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/daemon/common/commonHasher_c.c:85:45: warning: passing arguments to 'MD4Final' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | COMPLETE_HASH(md4,MD4_CTX,MD4Init,MD4Update,md4_finish) | ^ -
src/daemon/common/commonHasher_c.c:85:1: warning: passing arguments to 'MD4Update' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | COMPLETE_HASH(md4,MD4_CTX,MD4Init,MD4Update,md4_finish) | ^ -
src/daemon/common/commonHasher_c.c:111:30: 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] 111 | tiger_hash(0, s, length, digest); | ^~~~~~ -
src/daemon/common/commonHasher_c.c:120:43: 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] 120 | tiger_hash(1,digests, 2*DIGEST_LEN, digest); | ^~~~~~ -
src/daemon/common/commonHasher_c.c:296:22: warning: "string_length" is deprecated: use "caml_string_length" instead [-W#pragma-messages] 296 | int result_len = string_length(result_v); | ^ -
src/daemon/common/commonHasher_c.c:338:64: 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] 338 | md4_unsafe64_fd_direct(job_fd, job_begin_pos, job_len, p_job_result); | ^~~~~~~~~~~~ -
src/daemon/common/commonHasher_c.c:342:64: 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] 342 | md5_unsafe64_fd_direct(job_fd, job_begin_pos, job_len, p_job_result); | ^~~~~~~~~~~~ -
src/daemon/common/commonHasher_c.c:346:65: 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] 346 | sha1_unsafe64_fd_direct(job_fd, job_begin_pos, job_len, p_job_result); | ^~~~~~~~~~~~ -
src/daemon/common/commonHasher_c.c:396:3: warning: "enter_blocking_section" is deprecated: use "caml_enter_blocking_section" instead [-W#pragma-messages] 396 | enter_blocking_section(); | ^ -
src/daemon/common/commonHasher_c.c:402:3: warning: "leave_blocking_section" is deprecated: use "caml_leave_blocking_section" instead [-W#pragma-messages] 402 | leave_blocking_section (); | ^ -
src/networks/direct_connect/che3_c.c:183:20: 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] 183 | value=get_bits(data_string,&offset_pattern,v_len); | ^~~~~~~~~~~ -
src/networks/direct_connect/che3_c.c:197:21: 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] 197 | cur_val=get_bit(data_string,&offset_encoded); /* get one bit */ | ^~~~~~~~~~~ -
src/networks/direct_connect/che3_c.c:202:35: 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] 202 | cur_val=(cur_val<<1)|get_bit(data_string,&offset_encoded); | ^~~~~~~~~~~ -
src/networks/direct_connect/che3_c.c:528:13: warning: "string_length" is deprecated: use "caml_string_length" instead [-W#pragma-messages] 528 | int len = string_length(s_v); | ^ -
src/networks/direct_connect/che3_c.c:535:9: warning: "alloc_string" is deprecated: use "caml_alloc_string" instead [-W#pragma-messages] 535 | res = alloc_string(final_len); | ^ -
src/networks/direct_connect/che3_c.c:544:13: warning: "string_length" is deprecated: use "caml_string_length" instead [-W#pragma-messages] 544 | int len = string_length(s_v); | ^ -
src/networks/direct_connect/che3_c.c:551:9: warning: "alloc_string" is deprecated: use "caml_alloc_string" instead [-W#pragma-messages] 551 | res = alloc_string(final_len); | ^ -
src/networks/fasttrack/fst_crypt_ml.c:56: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] 56 | fst_cipher_crypt(cipher, s+pos, len); | ^~~~~ -
src/utils/lib/CryptoPP.h:4361:5: warning: '~AlgorithmParametersBase' has a non-throwing exception specification but can still throw [-Wexceptions] 4361 | throw ParameterNotUsed(m_name); | ^ -
src/utils/lib/CryptoPP.cc:698:7: warning: 'auto_ptr<CryptoPP::PK_MessageAccumulator>' is deprecated [-Wdeprecated-declarations] 698 | std::auto_ptr<PK_MessageAccumulator> m(messageAccumulator); | ^ -
src/utils/lib/CryptoPP.cc:704:7: warning: 'auto_ptr<CryptoPP::PK_MessageAccumulator>' is deprecated [-Wdeprecated-declarations] 704 | std::auto_ptr<PK_MessageAccumulator> m(NewSignatureAccumulator(rng)); | ^ -
src/utils/lib/CryptoPP.cc:712:7: warning: 'auto_ptr<CryptoPP::PK_MessageAccumulator>' is deprecated [-Wdeprecated-declarations] 712 | std::auto_ptr<PK_MessageAccumulator> m(NewSignatureAccumulator(rng)); | ^ -
src/utils/lib/CryptoPP.cc:720:7: warning: 'auto_ptr<CryptoPP::PK_MessageAccumulator>' is deprecated [-Wdeprecated-declarations] 720 | std::auto_ptr<PK_MessageAccumulator> m(messageAccumulator); | ^ -
src/utils/lib/CryptoPP.cc:726:7: warning: 'auto_ptr<CryptoPP::PK_MessageAccumulator>' is deprecated [-Wdeprecated-declarations] 726 | std::auto_ptr<PK_MessageAccumulator> m(NewVerificationAccumulator()); | ^ -
src/utils/lib/CryptoPP.cc:734:7: warning: 'auto_ptr<CryptoPP::PK_MessageAccumulator>' is deprecated [-Wdeprecated-declarations] 734 | std::auto_ptr<PK_MessageAccumulator> m(messageAccumulator); | ^ -
src/utils/lib/CryptoPP.cc:742:7: warning: 'auto_ptr<CryptoPP::PK_MessageAccumulator>' is deprecated [-Wdeprecated-declarations] 742 | std::auto_ptr<PK_MessageAccumulator> m(NewVerificationAccumulator()); | ^ -
src/utils/lib/CryptoPP.cc:1047:8: warning: 'auto_ptr<std::vector<unsigned short>>' is deprecated [-Wdeprecated-declarations] 1047 | std::auto_ptr<std::vector<word16> > pPrimeTable(new std::vector<word16>); | ^ -
src/utils/lib/CryptoPP.cc:6788:8: warning: 'auto_ptr<CryptoPP::OutputProxy>' is deprecated [-Wdeprecated-declarations] 6788 | std::auto_ptr<OutputProxy> temp(proxy = new OutputProxy(*this, false)); | ^ -
src/utils/lib/CryptoPP.h:4291:74: warning: binding dereferenced null pointer to reference has undefined behavior [-Wnull-dereference] 4291 | R value = Hack_DefaultValueFromConstReferenceType(reinterpret_cast<R>(*(int *)NULL)); | ^~~~~~~~~~~~ -
src/utils/lib/CryptoPP_stubs.c:90:36: warning: assigning to 'value *' (aka 'long *') from 'const value *' (aka 'const long *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 90 | if (caml_func == NULL) caml_func = caml_named_value("ml_lprintf_nl"); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/usr/local/include/gd.h:1095:82: warning: "callback" is deprecated: use "caml_callback" instead [-W#pragma-messages] 1095 | BGD_DECLARE(int) gdImageColorReplaceCallback(gdImagePtr im, gdCallbackImageColor callback); | ^ -
src/utils/cdk/gdstubs.c:102:10: warning: cast to smaller integer type 'int' from 'gdFontPtr' (aka 'gdFont *') [-Wpointer-to-int-cast] 102 | return (int)FONT_VAL(v1) - (int)FONT_VAL(v2); | ^~~~~~~~~~~~~~~~~ -
src/utils/cdk/gdstubs.c:102:30: warning: cast to smaller integer type 'int' from 'gdFontPtr' (aka 'gdFont *') [-Wpointer-to-int-cast] 102 | return (int)FONT_VAL(v1) - (int)FONT_VAL(v2); | ^~~~~~~~~~~~~~~~~ -
src/utils/cdk/gdstubs.c:113:7: warning: "alloc_custom" is deprecated: use "caml_alloc_custom" instead [-W#pragma-messages] 113 | v = alloc_custom(&font_t_custom_operations, sizeof(GdFWrapper), 1, 10); | ^ -
src/utils/cdk/gdstubs.c:136:5: warning: "raise_constant" is deprecated: use "caml_raise_constant" instead [-W#pragma-messages] 136 | raise_constant(*(value *)caml_named_value("gdopen failed")); | ^ -
src/utils/cdk/gdstubs.c:138:7: warning: "alloc_custom" is deprecated: use "caml_alloc_custom" instead [-W#pragma-messages] 138 | v = alloc_custom(&image_t_custom_operations, sizeof(GdWrapper), | ^ -
src/utils/cdk/gdstubs.c:154:5: warning: "raise_not_found" is deprecated: use "caml_raise_not_found" instead [-W#pragma-messages] 154 | raise_not_found(); | ^ -
src/utils/cdk/gdstubs.c:161:5: warning: "raise_constant" is deprecated: use "caml_raise_constant" instead [-W#pragma-messages] 161 | raise_constant(*(value *)caml_named_value("gdopen failed")); | ^ -
src/utils/cdk/gdstubs.c:163:8: warning: "alloc_custom" is deprecated: use "caml_alloc_custom" instead [-W#pragma-messages] 163 | v = alloc_custom(&image_t_custom_operations, sizeof(GdWrapper), | ^ -
src/utils/cdk/gdstubs.c:183:5: warning: "raise_not_found" is deprecated: use "caml_raise_not_found" instead [-W#pragma-messages] 183 | raise_not_found(); | ^ -
src/utils/cdk/gdstubs.c:190:5: warning: "raise_constant" is deprecated: use "caml_raise_constant" instead [-W#pragma-messages] 190 | raise_constant(*(value *)caml_named_value("gdopen failed")); | ^ -
src/utils/cdk/gdstubs.c:192:8: warning: "alloc_custom" is deprecated: use "caml_alloc_custom" instead [-W#pragma-messages] 192 | v = alloc_custom(&image_t_custom_operations, sizeof(GdWrapper), | ^ -
src/utils/cdk/gdstubs.c:321:17: 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] 321 | String_val(s), Int_val(color)); | ^~~~~~~~~~~~~ -
src/utils/cdk/gdstubs.c:333:19: 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] 333 | String_val(s), Int_val(color)); | ^~~~~~~~~~~~~ -
src/utils/cdk/gdstubs.c:387:6: warning: "really_putblock" is deprecated: use "caml_really_putblock" instead [-W#pragma-messages] 387 | void really_putblock (struct channel *, char *, long); | ^ -
src/utils/cdk/gdstubs.c:398:3: warning: "really_putblock" is deprecated: use "caml_really_putblock" instead [-W#pragma-messages] 398 | really_putblock(Channel(chan), dat, size); | ^ -
src/utils/cdk/gdstubs.c:413:3: warning: "really_putblock" is deprecated: use "caml_really_putblock" instead [-W#pragma-messages] 413 | really_putblock(Channel(chan), dat, size); | ^ -
src/utils/cdk/gdstubs.c:493:7: warning: "copy_int32" is deprecated: use "caml_copy_int32" instead [-W#pragma-messages] 493 | v = copy_int32 ((int32_t)png_access_version_number()); | ^ -
/usr/local/include/gtk-2.0/gtk/gtktypeutils.h:236:34: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^ -
/usr/local/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^ -
/usr/local/include/X11/Xlib.h:1233:13: warning: "callback" is deprecated: use "caml_callback" instead [-W#pragma-messages] 1233 | XIMProc callback; | ^ -
/usr/local/include/X11/Xlib.h:1238:13: warning: "callback" is deprecated: use "caml_callback" instead [-W#pragma-messages] 1238 | XICProc callback; | ^ -
src/gtk2/gui/x11/systraystubs.c:54:15: warning: assigning to 'value *' (aka 'long *') from 'const value *' (aka 'const long *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 54 | closure_f = caml_named_value("on_systray_clicked"); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/gtk2/gui/x11/systraystubs.c:57:3: warning: "callback" is deprecated: use "caml_callback" instead [-W#pragma-messages] 57 | callback(*closure_f, Val_int(button_type)); | ^