Snippets for unrar-free 0.3.3 from Fedora i686
Sourced from https://kojipkgs.fedoraproject.org/packages/unrar-free/0.3.3/3.fc45/data/logs/i686/build.log.
-
unrar.c:73:43: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Wformat=] 73 | fprintf (unrar->outfile, "%5u %10lu\n", num_files, num_bytes); | ~~~~^ ~~~~~~~~~ | | | | | uint64_t {aka long long unsigned int} | long unsigned int | %10llu -
unrar.c:109:45: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘la_int64_t’ {aka ‘long long int’} [-Wformat=] 109 | fprintf (unrar->outfile, " %10lu %s %s\n", | ~~~~^ | | | long unsigned int | %10llu 110 | archive_entry_size (entry), datetime, attr); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | la_int64_t {aka long long int} -
unrar.c:405:9: warning: pointer ‘orig_name_86’ may be used after ‘free’ [-Wuse-after-free] 405 | show_status_line (unrar, action, orig_name, status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
unrar.c:439:5: warning: pointer ‘orig_name_86’ used after ‘free’ [-Wuse-after-free] 439 | show_status_line (unrar, action, orig_name, status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
unrar.c:495:5: warning: ‘__strncpy_chk’ output truncated before terminating nul copying 5 bytes from a string of the same length [-Wstringop-truncation] 495 | strncpy (tryfile + (search - filecp + 5 * i + 1), "[0-9]", 5); | ^