Snippets for xar 417.1 from Fedora aarch64
Sourced from https://kojipkgs.fedoraproject.org/packages/xar/1.8.0.417.1/20.fc45/data/logs/aarch64/build.log.
-
lib/ea.c:70:85: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=] 70 | asprintf((char **)&XAR_ATTR(XAR_PROP(XAR_EA(ret)->prop)->attrs)->value, "%lld", XAR_FILE(f)->nexteaid++); | ~~~^ | | | long long int | %ld -
lib/darwinattr.c:426:17: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 426 | asprintf(&nupath, "%s/%s", dname, nonunderbar); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/darwinattr.c:439:17: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 439 | asprintf(&tmp2, "%s/..namedfork/rsrc", nupath); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/darwinattr.c:637:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 637 | write(DARWINATTR_CONTEXT(context)->fd, &ash, XAR_ASH_SIZE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/darwinattr.c:643:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 643 | write(DARWINATTR_CONTEXT(context)->fd, &ase, 12); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/darwinattr.c:650:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 650 | write(DARWINATTR_CONTEXT(context)->fd, &ase, 12); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/ea.c:70:9: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 70 | asprintf((char **)&XAR_ATTR(XAR_PROP(XAR_EA(ret)->prop)->attrs)->value, "%lld", XAR_FILE(f)->nexteaid++); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:530:41: warning: unused variable ‘rbytes’ [-Wunused-variable] 530 | int fd, r, off, wbytes, rbytes; | ^~~~~~ -
lib/archive.c:524:13: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable=] 524 | int ret, retval = 0; | ^~~ -
lib/archive.c:859:20: warning: unused variable ‘currentAttr’ [-Wunused-variable] 859 | xar_attr_t currentAttr, a; | ^~~~~~~~~~~ -
lib/archive.c:1606:19: warning: variable ‘noattr’ set but not used [-Wunused-but-set-variable=] 1606 | int type, noattr, ret; | ^~~~~~ -
lib/archive.c:1605:40: warning: variable ‘uri’ set but not used [-Wunused-but-set-variable=] 1605 | const xmlChar *name, *prefix, *uri; | ^~~ -
lib/archive.c:1605:31: warning: variable ‘prefix’ set but not used [-Wunused-but-set-variable=] 1605 | const xmlChar *name, *prefix, *uri; | ^~~~~~ -
lib/io.c:264:42: warning: variable ‘inc’ set but not used [-Wunused-but-set-variable=] 264 | int64_t readsize=0, writesize=0, inc = 0, this_write=0; | ^~~ -
lib/filetree.c:333:25: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 333 | asprintf(&XAR_ITER(i)->path, "%s/%s", tmp, XAR_PROP(p)->key); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/filetree.c:368:17: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 368 | asprintf((char **)&XAR_ITER(i)->node, "%s/%s", XAR_ITER(i)->path, XAR_PROP(p)->key); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/io.c:449:20: warning: unused variable ‘tmpp’ [-Wunused-variable] 449 | xar_prop_t tmpp; | ^~~~ -
lib/io.c:448:21: warning: unused variable ‘opt’ [-Wunused-variable] 448 | const char *opt; | ^~~ -
lib/io.c:555:42: warning: variable ‘writesize’ set but not used [-Wunused-but-set-variable=] 555 | int64_t fsize, inc = 0, seekoff, writesize=0; | ^~~~~~~~~ -
lib/filetree.c:590:9: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 590 | asprintf(&tmp, "%s/%s", k, key); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/filetree.c:816:25: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 816 | asprintf(&XAR_ITER(i)->path, "%s/%s", tmp, name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:235:17: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 235 | asprintf(&tmp4, "%s/xar.heap.XXXXXX", XAR(ret)->dirname); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/err.c:75:9: warning: ignoring return value of ‘vasprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 75 | vasprintf(&msg, format, arg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/filetree.c:1025:41: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1025 | asprintf((char **)&XAR_FILE(f)->fspath, "%s/%s", XAR_FILE(XAR_FILE(f)->parent)->fspath, XAR_PROP(p)->value); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:584:17: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 584 | asprintf(&tmpser, "%s/xar.toc.XXXXXX", XAR(x)->dirname); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:589:17: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 589 | asprintf(&tmpser, "%s/xar.toc.XXXXXX", XAR(x)->dirname); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:689:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 689 | write(XAR(x)->fd, &XAR(x)->header, sizeof(xar_header_t)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/io.c:413:9: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 413 | asprintf(&tmpstr, "%"PRIu64, readsize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/io.c:417:9: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 417 | asprintf(&tmpstr, "%"PRIu64, (uint64_t)orig_heap_offset); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/io.c:429:9: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 429 | asprintf(&tmpstr, "%"PRIu64, writesize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:720:25: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 720 | write(XAR(x)->fd, chkstr, chklen); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:752:41: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 752 | write(XAR(x)->fd, signed_data,XAR_SIGNATURE(sig)->len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/io.c:614:9: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 614 | asprintf(&tmpstr, "%"PRIu64, (uint64_t)orig_heap_offset); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:1119:17: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1119 | asprintf(&prefixstr, "%s../", prefix); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:1028:25: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1028 | asprintf(&tmp, "%s", realpath); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:1030:25: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1030 | asprintf(&tmp, "%s%s%s", XAR(x)->path_prefix, prefix, name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:1064:25: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1064 | asprintf(&tmp, "%s", realpath); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:1066:25: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1066 | asprintf(&tmp, "%s/%s%s", path, prefix, name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:937:25: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 937 | asprintf(&tmp, "%s", realpath); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:939:25: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 939 | asprintf(&tmp, "%s%s%s", XAR(x)->path_prefix, prefix, name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:973:25: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 973 | asprintf(&tmp, "%s", realpath); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:975:25: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 975 | asprintf(&tmp, "%s/%s%s", path, prefix, name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/hash.c:191:17: warning: ‘__strncat_chk’ output may be truncated copying 2 bytes from a string of length 2 [-Wstringop-truncation] 191 | strncat(result,hexValue,2); | ^ -
lib/stat.c:452:17: warning: ignoring return value of ‘readlink’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 452 | readlink(file, link, sizeof(link)-1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/stat.c:463:17: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 463 | asprintf(&tmpstr, "%"INO_STRING, XAR(x)->sbcache.st_ino); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/stat.c:469:17: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 469 | asprintf(&tmpstr, "%"DEV_STRING, XAR(x)->sbcache.st_dev); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/stat.c:475:17: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 475 | asprintf(&tmpstr, "%04o", XAR(x)->sbcache.st_mode & (~S_IFMT)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/stat.c:481:17: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 481 | asprintf(&tmpstr, "%"PRIu64, (uint64_t)XAR(x)->sbcache.st_uid); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/stat.c:493:17: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 493 | asprintf(&tmpstr, "%"PRIu64, (uint64_t)XAR(x)->sbcache.st_gid); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/zxar.c:120:24: warning: unused variable ‘start_avail_out’ [-Wunused-variable] 120 | size_t start_avail_out = GZIP_CONTEXT(context)->z.avail_out; | ^~~~~~~~~~~~~~~ -
lib/zxar.c:119:24: warning: unused variable ‘start_avail_in’ [-Wunused-variable] 119 | size_t start_avail_in = GZIP_CONTEXT(context)->z.avail_in; | ^~~~~~~~~~~~~~ -
lib/strmode.h:39:1: warning: old-style function definition [-Wold-style-definition] 39 | strmode(mode, p) | ^~~~~~~ -
lib/util.c:152:17: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 152 | asprintf(&ret, "%s/%s", name, tmp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/macho.c:244:33: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 244 | asprintf(&typestr2, "contents/%s/type", cpustr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/macho.c:322:25: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 322 | asprintf(&propstr, "contents/%s/library", tmpstr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/xar.c:884:13: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable=] 884 | int ret; | ^~~ -
src/xar.c:1001:25: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1001 | asprintf(&Subdoc, "%s.xml", SubdocName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/xar.c:146:9: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 146 | read(fd, buf, len); | ^~~~~~~~~~~~~~~~~~ -
src/xar.c:341:17: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 341 | asprintf(&tmp->str, "%s/.*", args[argi]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/xar.c:167:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 167 | write(fd, sdoc, size); | ^~~~~~~~~~~~~~~~~~~~~