Snippets for xar 503 from Nix aarch64-linux
Sourced from https://hydra.nixos.org/log/wlmhlfwpvj8xj1731ds5qagmads8mg1f-xar-503.drv.
-
lib/archive.c:522:33: warning: passing argument 2 of 'readlink' from incompatible pointer type [-Wincompatible-pointer-types] 522 | if (readlink(proc_buff, &path_buff, PATH_MAX) < 0) { | ^~~~~~~~~~ | | | char (*)[4096] -
lib/archive.c:641:41: warning: unused variable 'rbytes' [-Wunused-variable] 641 | int fd, r, off, wbytes, rbytes; | ^~~~~~ -
lib/archive.c:635:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable] 635 | int ret, retval = 0; | ^~~ -
lib/archive.c:984:20: warning: unused variable 'currentAttr' [-Wunused-variable] 984 | xar_attr_t currentAttr, a; | ^~~~~~~~~~~ -
lib/archive.c:1741:19: warning: variable 'noattr' set but not used [-Wunused-but-set-variable] 1741 | int type, noattr, ret; | ^~~~~~ -
lib/archive.c:1740:40: warning: variable 'uri' set but not used [-Wunused-but-set-variable] 1740 | const xmlChar *name, *prefix, *uri; | ^~~ -
lib/archive.c:1740:31: warning: variable 'prefix' set but not used [-Wunused-but-set-variable] 1740 | const xmlChar *name, *prefix, *uri; | ^~~~~~ -
lib/archive.c:238:17: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 238 | asprintf(&tmp4, "%s/xar.heap.XXXXXX", XAR(ret)->dirname); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:695:17: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 695 | asprintf(&tmpser, "%s/xar.toc.XXXXXX", XAR(x)->dirname); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:700:17: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 700 | asprintf(&tmpser, "%s/xar.toc.XXXXXX", XAR(x)->dirname); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:805:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 805 | write(XAR(x)->fd, &XAR(x)->header, sizeof(xar_header_t)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:838:25: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 838 | write(XAR(x)->fd, chkstr, chklen); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:870:41: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 870 | write(XAR(x)->fd, signed_data,XAR_SIGNATURE(sig)->len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:1241:17: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 1241 | asprintf(&prefixstr, "%s../", prefix); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:1151:25: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 1151 | asprintf(&tmp, "%s", realpath); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:1153:25: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 1153 | asprintf(&tmp, "%s%s%s", XAR(x)->path_prefix, prefix, name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:1187:25: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 1187 | asprintf(&tmp, "%s", realpath); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:1189:25: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 1189 | asprintf(&tmp, "%s/%s%s", path, prefix, name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:1062:25: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 1062 | asprintf(&tmp, "%s", realpath); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:1064:25: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 1064 | asprintf(&tmp, "%s%s%s", XAR(x)->path_prefix, prefix, name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:1098:25: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 1098 | asprintf(&tmp, "%s", realpath); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/archive.c:1100:25: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 1100 | asprintf(&tmp, "%s/%s%s", path, prefix, name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/darwinattr.c:445:17: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 445 | asprintf(&nupath, "%s/%s", dname, nonunderbar); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/darwinattr.c:458:17: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 458 | asprintf(&tmp2, "%s/..namedfork/rsrc", nupath); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/darwinattr.c:664:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 664 | write(DARWINATTR_CONTEXT(context)->fd, &ash, XAR_ASH_SIZE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/darwinattr.c:670:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 670 | write(DARWINATTR_CONTEXT(context)->fd, &ase, 12); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/darwinattr.c:677:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 677 | write(DARWINATTR_CONTEXT(context)->fd, &ase, 12); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/ea.c:71:9: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 71 | asprintf((char **)&XAR_ATTR(XAR_PROP(XAR_EA(ret)->prop)->attrs)->value, "%"PRId64, XAR_FILE(f)->nexteaid++); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
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/ext2.c:115:9: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 115 | asprintf(&vstr, "%d", version); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/filetree.c:416:25: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 416 | asprintf(&XAR_ITER(i)->path, "%s/%s", tmp, XAR_PROP(p)->key); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/filetree.c:451:17: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 451 | asprintf((char **)&XAR_ITER(i)->node, "%s/%s", XAR_ITER(i)->path, XAR_PROP(p)->key); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/filetree.c:689:9: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 689 | asprintf(&tmp, "%s/%s", k, key); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/filetree.c:1167:25: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 1167 | asprintf(&XAR_ITER(i)->path, "%s/%s", tmp, name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/filetree.c:1438:41: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 1438 | asprintf((char **)&XAR_FILE(f)->fspath, "%s/%s", XAR_FILE(XAR_FILE(f)->parent)->fspath, safe_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/io.c:416:9: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 416 | asprintf(&tmpstr, "%"PRIu64, readsize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/io.c:420:9: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 420 | asprintf(&tmpstr, "%"PRIu64, (uint64_t)orig_heap_offset); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/io.c:432:9: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 432 | asprintf(&tmpstr, "%"PRIu64, writesize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/io.c:612:9: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 612 | asprintf(&tmpstr, "%"PRIu64, (uint64_t)orig_heap_offset); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/linuxattr.c:112:23: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 112 | buf = malloc(bufsz); | ^~~~~~ -
lib/linuxattr.c:112:23: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 112 | buf = malloc(bufsz); | ^~~~~~ -
lib/linuxattr.c:119:25: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] 119 | free(buf); | ^~~~ -
lib/linuxattr.c:119:25: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch]
-
lib/linuxattr.c:172:15: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 172 | buf = malloc(bufsz); | ^~~~~~ -
lib/linuxattr.c:178:47: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 178 | case ERANGE: bufsz = bufsz*2; free(buf); goto TRYAGAIN; | ^~~~ -
lib/linuxattr.c:211:25: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 211 | free(context.buf); | ^~~~ -
lib/linuxattr.c:220:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 220 | free(buf); | ^~~~ -
lib/linuxattr.c:250:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 250 | free(tmp); | ^~~~ -
lib/hash.c:193:17: warning: '__builtin___strncat_chk' output may be truncated copying 2 bytes from a string of length 2 [-Wstringop-truncation] 193 | strncat(result,hexValue,2); | ^ -
lib/stat.c:704:16: warning: unused variable 'modet' [-Wunused-variable] 704 | mode_t modet = 0; | ^~~~~ -
lib/stat.c:463:17: warning: ignoring return value of 'readlink' declared with attribute 'warn_unused_result' [-Wunused-result] 463 | readlink(file, link, sizeof(link)-1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/stat.c:474:17: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 474 | asprintf(&tmpstr, "%"INO_STRING, XAR(x)->sbcache.st_ino); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/stat.c:480:17: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 480 | asprintf(&tmpstr, "%"DEV_STRING, XAR(x)->sbcache.st_dev); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/stat.c:486:17: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 486 | asprintf(&tmpstr, "%04o", XAR(x)->sbcache.st_mode & (~S_IFMT)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/stat.c:492:17: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 492 | asprintf(&tmpstr, "%"PRIu64, (uint64_t)XAR(x)->sbcache.st_uid); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/stat.c:504:17: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 504 | asprintf(&tmpstr, "%"PRIu64, (uint64_t)XAR(x)->sbcache.st_gid); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/subdoc.c:126:17: warning: 'use' is deprecated [-Wdeprecated-declarations] 126 | *size = buf->use; | ^ -
lib/subdoc.c:127:9: warning: 'size' is deprecated [-Wdeprecated-declarations] 127 | *ret = malloc(buf->size); | ^ -
lib/subdoc.c:134:9: warning: 'content' is deprecated [-Wdeprecated-declarations] 134 | memcpy(*ret, buf->content, *size); | ^~~~~~ -
lib/strmode.h:39:1: warning: old-style function definition [-Wold-style-definition] 39 | strmode(mode, p) | ^~~~~~~ -
lib/util.c:228:25: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 228 | asprintf(&ret, "%s/%s", name, tmp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lib/util.c:257:25: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 257 | 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:911:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable] 911 | int ret; | ^~~ -
src/xar.c:1028:25: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 1028 | 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); | ^~~~~~~~~~~~~~~~~~~~~