Snippets for box64 0.4.4 from Nix aarch64-linux
Sourced from https://hydra.nixos.org/log/8g4ibhmxfxai6yczka2733rrgx60vk1s-box64-0.4.4.drv.
-
/build/source/src/dynarec/arm64/dynarec_arm64_functions.c:899:46: warning: '%s' directive writing up to 4095 bytes into a region of size between 477 and 496 [-Wformat-overflow=] 899 | sprintf(buf2, "; %d: %d opcodes, %s", ninst, dyn->insts[ninst].size / 4, buf); | ^~ ~~~ -
/build/source/src/os/os_linux.c:228:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 228 | write(trace_fd, tmp, strlen(tmp)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/os/os_linux.c:235:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 235 | write(trace_fd, tmp, strlen(tmp)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/build_info.h:34:19: warning: '%04lu' directive output may be truncated writing 4 bytes into a region of size between 2 and 30 [-Wformat-truncation=] 34 | #define BOX64_STR "Box64" | ^~~~~~~ -
/build/source/src/build_info.h:34:19: warning: '%1.2f' directive output may be truncated writing between 3 and 313 bytes into a region of size between 2 and 30 [-Wformat-truncation=] 34 | #define BOX64_STR "Box64" | ^~~~~~~ -
/build/source/src/build_info.h:34:19: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] 34 | #define BOX64_STR "Box64" | ^~~~~~~ -
/build/source/src/core.c:382:73: warning: ' (deleted)' directive output may be truncated writing 10 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 382 | snprintf(self_name_with_deleted, sizeof(self_name_with_deleted), "%s (deleted)", self_name); | ^~~~~~~~~~ -
/build/source/src/core.c:392:49: warning: '/exe' directive output may be truncated writing 4 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 392 | snprintf(exe_path, sizeof(exe_path), "%s/exe", proc_path); | ^~~~ -
/build/source/src/emu/x87emu_private.c:262:46: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 6 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 262 | snprintf(buf, sizeof(buf), "%s%04x %016llx", prefix?prefix:"", val.b, val.f.q); | ~~~~~~^ ~~~~~~~ | | | | long long unsigned int uint64_t {aka long unsigned int} | %016lx -
/build/source/src/libtools/threads.c:366:19: warning: argument 1 null where non-null expected [-Wnonnull] 366 | int ret = pthread_attr_destroy(PTHREAD_ATTR(attr)); | ^~~~~~~~~~~~~~~~~~~~ -
/build/source/src/libtools/threads.c:376:23: warning: argument 1 null where non-null expected [-Wnonnull] 376 | ret = pthread_attr_getstack(PTHREAD_ATTR(attr), stackaddr, stacksize); | ^~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/libtools/threads.c:387:19: warning: argument 1 null where non-null expected [-Wnonnull] 387 | int ret = pthread_attr_setstacksize(PTHREAD_ATTR(attr), stacksize); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/libtools/threads.c:399:19: warning: argument 1 null where non-null expected [-Wnonnull] 399 | int ret = pthread_attr_setstacksize(PTHREAD_ATTR(attr), stacksize); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/libtools/threads.c:409:16: warning: argument 1 null where non-null expected [-Wnonnull] 409 | return pthread_attr_getdetachstate(PTHREAD_ATTR(attr), state); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/libtools/threads.c:415:16: warning: argument 1 null where non-null expected [-Wnonnull] 415 | return pthread_attr_getguardsize(PTHREAD_ATTR(attr), size); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/libtools/threads.c:422:16: warning: argument 1 null where non-null expected [-Wnonnull] 422 | return pthread_attr_getinheritsched(PTHREAD_ATTR(attr), sched); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/libtools/threads.c:432:16: warning: argument 1 null where non-null expected [-Wnonnull] 432 | return pthread_attr_getschedparam(PTHREAD_ATTR(attr), param); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/libtools/threads.c:438:16: warning: argument 1 null where non-null expected [-Wnonnull] 438 | return pthread_attr_getschedpolicy(PTHREAD_ATTR(attr), policy); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/libtools/threads.c:444:16: warning: argument 1 null where non-null expected [-Wnonnull] 444 | return pthread_attr_getscope(PTHREAD_ATTR(attr), scope); | ^~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/libtools/threads.c:453:23: warning: argument 1 null where non-null expected [-Wnonnull] 453 | ret = pthread_attr_getstack(PTHREAD_ATTR(attr), addr, &size); | ^~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/libtools/threads.c:464:23: warning: argument 1 null where non-null expected [-Wnonnull] 464 | ret = pthread_attr_getstack(PTHREAD_ATTR(attr), &addr, size); | ^~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/libtools/threads.c:474:19: warning: argument 1 null where non-null expected [-Wnonnull] 474 | int ret = pthread_attr_init(PTHREAD_ATTR(attr)); | ^~~~~~~~~~~~~~~~~ -
/build/source/src/libtools/threads.c:483:19: warning: argument 1 null where non-null expected [-Wnonnull] 483 | int ret = pthread_attr_getaffinity_np(PTHREAD_ATTR(attr), cpusize, cpuset); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/libtools/threads.c:502:19: warning: argument 1 null where non-null expected [-Wnonnull] 502 | int ret = pthread_attr_setaffinity_np(PTHREAD_ATTR(attr), cpusize, cpuset_); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/libtools/threads.c:515:19: warning: argument 1 null where non-null expected [-Wnonnull] 515 | int ret = pthread_attr_setdetachstate(PTHREAD_ATTR(attr), state); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/libtools/threads.c:523:19: warning: argument 1 null where non-null expected [-Wnonnull] 523 | int ret = pthread_attr_setguardsize(PTHREAD_ATTR(attr), size); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/libtools/threads.c:532:19: warning: argument 1 null where non-null expected [-Wnonnull] 532 | int ret = pthread_attr_setinheritsched(PTHREAD_ATTR(attr), sched); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/libtools/threads.c:544:19: warning: argument 1 null where non-null expected [-Wnonnull] 544 | int ret = pthread_attr_setschedparam(PTHREAD_ATTR(attr), param); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/libtools/threads.c:552:19: warning: argument 1 null where non-null expected [-Wnonnull] 552 | int ret = pthread_attr_setschedpolicy(PTHREAD_ATTR(attr), policy); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/libtools/threads.c:560:19: warning: argument 1 null where non-null expected [-Wnonnull] 560 | int ret = pthread_attr_setscope(PTHREAD_ATTR(attr), scope); | ^~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/libtools/threads.c:578:19: warning: argument 2 null where non-null expected [-Wnonnull] 578 | int ret = pthread_getattr_np(thread_id, PTHREAD_ATTR(attr)); | ^~~~~~~~~~~~~~~~~~ -
/build/source/src/libtools/threads.c:603:19: warning: argument 1 null where non-null expected [-Wnonnull] 603 | int ret = pthread_getattr_default_np(PTHREAD_ATTR(attr)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/libtools/threads.c:611:19: warning: argument 1 null where non-null expected [-Wnonnull] 611 | int ret = pthread_setattr_default_np(PTHREAD_ATTR(attr)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/libtools/threads.c:629:20: warning: argument 1 null where non-null expected [-Wnonnull] 629 | if(pthread_attr_getstacksize(PTHREAD_ATTR(attr), &stsize)==0) | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/tools/dynacache.c:876:76: warning: format '%zu' expects argument of type 'size_t', but argument 6 has type 'uint32_t' {aka 'unsigned int'} [-Wformat=] 876 | n += snprintf(buf+n, sizeof(buf)-n, "\tMapped at %p-%p, with %zu lock and %zu unaligned addresses", | ~~^ | | | long unsigned int | %u 877 | (void*)file_header->map_addr, (void*)file_header->map_addr+file_header->map_len, 878 | file_header->nLockAddresses, file_header->nUnalignedAddresses); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | uint32_t {aka unsigned int} -
/build/source/src/tools/dynacache.c:876:89: warning: format '%zu' expects argument of type 'size_t', but argument 7 has type 'uint32_t' {aka 'unsigned int'} [-Wformat=] 876 | n += snprintf(buf+n, sizeof(buf)-n, "\tMapped at %p-%p, with %zu lock and %zu unaligned addresses", | ~~^ | | | long unsigned int | %u 877 | (void*)file_header->map_addr, (void*)file_header->map_addr+file_header->map_len, 878 | file_header->nLockAddresses, file_header->nUnalignedAddresses); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | uint32_t {aka unsigned int} -
/build/source/src/tools/dynacache.c:880:72: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long long unsigned int' [-Wformat=] 880 | n += snprintf(buf+n, sizeof(buf)-n, "\n\tCompression: %d%% / %s compressed", 100ULL-total_compressed*100ULL/total_blocks ,NicePrintSize(total_compressed)); | ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | int long long unsigned int | %lld -
/build/source/src/steam.c:35:5: warning: ignoring return value of 'symlink' declared with attribute 'warn_unused_result' [-Wunused-result] 35 | symlink(file, tmp); | ^~~~~~~~~~~~~~~~~~ -
/build/source/src/wrapped/wrappeddbus.c:685:5: warning: ignoring return value of 'vasprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 685 | vasprintf(&buff, (char*)fmt, VARARGS); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/wrapped/wrappedgmp.c:158:38: warning: passing argument 2 of 'my_gmp.__gmp_vasprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 158 | return my->__gmp_vasprintf(strp, fmt, VARARGS); | ^~~ -
/build/source/src/wrapped/wrappedgmp.c:165:39: warning: passing argument 2 of 'my_gmp.__gmp_vfprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 165 | return my->__gmp_vfprintf(stream, fmt, VARARGS); | ^~~ -
/build/source/src/wrapped/wrappedgmp.c:176:38: warning: passing argument 2 of 'my_gmp.__gmp_vasprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 176 | return my->__gmp_vasprintf(strp, fmt, VARARGS); | ^~~ -
/build/source/src/wrapped/wrappedgmp.c:187:39: warning: passing argument 2 of 'my_gmp.__gmp_vfprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 187 | return my->__gmp_vfprintf(stream, fmt, VARARGS); | ^~~ -
/build/source/src/wrapped/wrappedlibavutil56.c:213:5: warning: ignoring return value of 'vasprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 213 | vasprintf(&buff, (char*)fmt, VARARGS); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/wrapped/wrappedlibavutil56.c:260:5: warning: ignoring return value of 'vasprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 260 | vasprintf(&buff, (char*)fmt, VARARGS); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/wrapped/wrappedlibavutil56.c:285:5: warning: ignoring return value of 'vasprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 285 | vasprintf(&buff, (char*)fmt, VARARGS); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/wrapped/wrappedlibc.c:2628:19: warning: argument 2 null where non-null expected [-Wnonnull] 2628 | int32_t ret = epoll_wait(epfd, events?_events:NULL, maxevents, timeout); | ^~~~~~~~~~ -
/build/source/src/wrapped/wrappedlibc.c:2637:19: warning: argument 2 null where non-null expected [-Wnonnull] 2637 | int32_t ret = epoll_pwait(epfd, events?_events:NULL, maxevents, timeout, sigmask); | ^~~~~~~~~~~ -
/build/source/src/wrapped/wrappedlibc.c:2655:15: warning: argument 2 null where non-null expected [-Wnonnull] 2655 | ret = epoll_pwait(epfd, events?_events:NULL, maxevents, tout, sigmask); | ^~~~~~~~~~~