Snippets for afpfs-ng 0.8.1 from Alpine ppc64le
Sourced from https://build.alpinelinux.org/buildlogs/build-edge-ppc64le/community/afpfs-ng/afpfs-ng-0.8.1-r12.log.
-
dsi.c:92:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 92 | dsi_setup_header(server,&dsi_opensession_header.dsi_header,DSI_DSIOpenSession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
dsi.c:481:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 481 | p=(void *)((unsigned int) server->incoming_buffer + sizeof(*reply1)); | ^ -
dsi.c:765:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 765 | (((unsigned int) server->incoming_buffer)+server->data_read), | ^ -
dsi.c:764:40: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 764 | ret = read(server->fd, (void *) | ^ -
uams.c:53:17: warning: initialization of 'int (*)(struct afp_server *, char *, char *, char *)' from incompatible pointer type 'int (*)(struct afp_server *, char *, char *)' [-Wincompatible-pointer-types] 53 | &cleartxt_passwd,NULL}; | ^ -
proto_attr.c:39:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 39 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_attr.c:80:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 80 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_attr.c:158:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 158 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_attr.c:211:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 211 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_desktop.c:35:41: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 35 | dsi_setup_header(volume->server,&request_packet.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_desktop.c:90:41: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 90 | dsi_setup_header(volume->server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_desktop.c:135:41: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 135 | dsi_setup_header(volume->server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_desktop.c:180:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 180 | dsi_setup_header(server,&request_packet.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_desktop.c:200:41: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 200 | dsi_setup_header(volume->server,&request_packet.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_directory.c:61:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 61 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_directory.c:110:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 110 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_directory.c:155:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 155 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_directory.c:296:23: warning: assignment to 'struct <anonymous> *' from incompatible pointer type 'char *' [-Wincompatible-pointer-types] 296 | entry = p; | ^ -
proto_directory.c:350:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 350 | dsi_setup_header(server,&afp_enumerate_request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_directory.c:410:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 410 | dsi_setup_header(server,&afp_enumerateext2_request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_files.c:51:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 51 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_files.c:166:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 166 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_files.c:200:41: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 200 | dsi_setup_header(volume->server,&readext_packet.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_files.c:249:41: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 249 | dsi_setup_header(volume->server,&readext_packet.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_files.c:339:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 339 | dsi_setup_header(server,&getfiledirparms->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_files.c:378:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 378 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_files.c:420:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 420 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSIWrite); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_files.c:479:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 479 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSIWrite); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_fork.c:45:41: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 45 | dsi_setup_header(volume->server,&request_packet.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_fork.c:74:41: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 74 | dsi_setup_header(volume->server,&request_packet.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_fork.c:94:41: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 94 | dsi_setup_header(volume->server,&request_packet.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_fork.c:114:38: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 114 | struct dsi_header * header = &afp_openfork_reply_packet->header; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_fork.c:160:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 160 | dsi_setup_header(server,&afp_openfork_request->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_fork.c:194:41: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 194 | dsi_setup_header(volume->server,&request.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~ -
proto_fork.c:237:41: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 237 | dsi_setup_header(volume->server,&request.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~ -
proto_login.c:27:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 27 | dsi_setup_header(server,&request.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~ -
proto_login.c:75:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 75 | dsi_setup_header(server,&request->header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~ -
proto_login.c:130:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 130 | dsi_setup_header(server,&request->header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~ -
proto_login.c:169:34: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 169 | dsi_setup_header(server, &request->header, DSI_DSICommand); | ^~~~~~~~~~~~~~~~ -
proto_map.c:38:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 38 | dsi_setup_header(server,&request.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~ -
proto_map.c:103:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 103 | dsi_setup_header(server,&request.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~ -
proto_map.c:154:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 154 | dsi_setup_header(server,&request->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~ -
proto_server.c:25:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 25 | dsi_setup_header(server,&afp_getsrvrparms_request.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_server.c:128:33: warning: taking address of packed member of 'struct afp_getsrvrmsg_request_packet' may result in an unaligned pointer value [-Waddress-of-packed-member] 128 | dsi_setup_header(server,&afp_getsrvrmsg_request.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_server.c:151:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 151 | dsi_setup_header(server,&request.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~ -
proto_volume.c:102:41: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 102 | dsi_setup_header(volume->server,&request.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~ -
proto_volume.c:170:41: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 170 | dsi_setup_header(volume->server,&afp_volopen_request->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_volume.c:235:41: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 235 | dsi_setup_header(volume->server,&afp_flush_request.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_volume.c:257:41: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 257 | dsi_setup_header(volume->server,&afp_getvolparms_request.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_session.c:70:34: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 70 | dsi_setup_header(server, &request->header, DSI_DSICommand); | ^~~~~~~~~~~~~~~~ -
proto_session.c:136:34: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 136 | dsi_setup_header(server, &request->header, DSI_DSICommand); | ^~~~~~~~~~~~~~~~ -
afp_url.c:238:9: warning: format not a string literal and no format arguments [-Wformat-security] 238 | snprintf(url->servername,strlen(p)+1,p); | ^~~~~~~~ -
afp_url.c:268:17: warning: format not a string literal and no format arguments [-Wformat-security] 268 | snprintf(url->password,strlen(q)+1,q); | ^~~~~~~~ -
afp_url.c:281:17: warning: format not a string literal and no format arguments [-Wformat-security] 281 | snprintf(url->uamname,strlen(q)+1,q); | ^~~~~~~~ -
afp_url.c:289:17: warning: format not a string literal and no format arguments [-Wformat-security] 289 | snprintf(url->username,strlen(p)+1,p); | ^~~~~~~~ -
afp_url.c:309:9: warning: format not a string literal and no format arguments [-Wformat-security] 309 | snprintf(url->volumename,strlen(p)+1,p); | ^~~~~~~~ -
afp_url.c:314:17: warning: format not a string literal and no format arguments [-Wformat-security] 314 | snprintf(url->path+1,strlen(q)+1,q); | ^~~~~~~~ -
status.c:38:46: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 38 | " did cache stats: %llu miss, %llu hit, %llu expired, %llu force removal\n uid/gid mapping: %s (%d/%d)\n", | ~~~^ | | | long long unsigned int | %lu 39 | v->did_cache_stats.misses, v->did_cache_stats.hits, | ~~~~~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} -
status.c:38:57: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 5 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 38 | " did cache stats: %llu miss, %llu hit, %llu expired, %llu force removal\n uid/gid mapping: %s (%d/%d)\n", | ~~~^ | | | long long unsigned int | %lu 39 | v->did_cache_stats.misses, v->did_cache_stats.hits, | ~~~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} -
status.c:38:67: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 6 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 38 | " did cache stats: %llu miss, %llu hit, %llu expired, %llu force removal\n uid/gid mapping: %s (%d/%d)\n", | ~~~^ | | | long long unsigned int | %lu 39 | v->did_cache_stats.misses, v->did_cache_stats.hits, 40 | v->did_cache_stats.expired, | ~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} -
status.c:38:81: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 7 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 38 | " did cache stats: %llu miss, %llu hit, %llu expired, %llu force removal\n uid/gid mapping: %s (%d/%d)\n", | ~~~^ | | | long long unsigned int | %lu -
status.c:127:17: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 9 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 127 | "\n" | ^~~~ -
status.c:144:35: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 144 | " transfer: %llu(rx) %llu(tx)\n" | ~~~^ | | | long long unsigned int | %lu 145 | " runt packets: %llu\n", 146 | s->stats.rx_bytes,s->stats.tx_bytes, | ~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} -
status.c:144:44: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 5 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 144 | " transfer: %llu(rx) %llu(tx)\n" | ~~~^ | | | long long unsigned int | %lu 145 | " runt packets: %llu\n", 146 | s->stats.rx_bytes,s->stats.tx_bytes, | ~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} -
status.c:144:17: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 6 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 144 | " transfer: %llu(rx) %llu(tx)\n" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
lowlevel.c:214:18: warning: overflow in conversion from 'int' to 'char' changes value from 'flags & 1183744' to '0' [-Woverflow] 214 | fp->sync=(flags & (O_SYNC | O_DIRECT)); | ^ -
lowlevel.c:499:43: warning: taking address of packed member of 'struct afp_unixprivs' may result in an unaligned pointer value [-Waddress-of-packed-member] 499 | set_nonunix_perms(&p->unixprivs.permissions, p); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
cmdline_afp.c:420:34: warning: format '%s' expects a matching 'char *' argument [-Wformat=] 420 | printf("Mode of %s isn't octal\n"); | ~^ | | | char * -
cmdline_afp.c:831:16: warning: format not a string literal and no format arguments [-Wformat-security] 831 | printf(text); | ^~~~ -
cmdline_afp.c:835:16: warning: format not a string literal and no format arguments [-Wformat-security] 835 | printf(text); | ^~~~ -
cmdline_afp.c:661:39: warning: '%s' directive output may be truncated writing up to 767 bytes into a region of size 255 [-Wformat-truncation=] 661 | snprintf(newpath,255,"%s/%s",curdir,arg); | ^~ ~~~~~~ -
cmdline_afp.c:1014:66: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] 1014 | snprintf(newdir,AFP_MAX_PATH,"/%s",path); | ^ -
cmdline_afp.c:1017:53: warning: '%s' directive output may be truncated writing up to 767 bytes into a region of size between 0 and 767 [-Wformat-truncation=] 1017 | "%s/%s",curdir,path); | ^~ -
cmdline_main.c:181:12: warning: initialization of 'int (*)(char *)' from incompatible pointer type 'int (*)(void)' [-Wincompatible-pointer-types] 181 | { "test",test_urls,"URL parsing test",1}, | ^~~~~~~~~ -
cmdline_testafp.c:29:9: warning: format not a string literal and no format arguments [-Wformat-security] 29 | sprintf(valid_url.servername,servername); | ^~~~~~~ -
cmdline_testafp.c:30:9: warning: format not a string literal and no format arguments [-Wformat-security] 30 | sprintf(valid_url.volumename,volumename); | ^~~~~~~ -
cmdline_testafp.c:31:9: warning: format not a string literal and no format arguments [-Wformat-security] 31 | sprintf(valid_url.path,path); | ^~~~~~~ -
cmdline_testafp.c:32:9: warning: format not a string literal and no format arguments [-Wformat-security] 32 | sprintf(valid_url.username,username); | ^~~~~~~ -
cmdline_testafp.c:33:9: warning: format not a string literal and no format arguments [-Wformat-security] 33 | sprintf(valid_url.password,password); | ^~~~~~~ -
cmdline_testafp.c:34:9: warning: format not a string literal and no format arguments [-Wformat-security] 34 | sprintf(valid_url.uamname,uamname); | ^~~~~~~