Snippets for afpfs-ng 0.8.1 from Fedora ppc64le
Sourced from https://kojipkgs.fedoraproject.org/packages/afpfs-ng/0.8.1/68.fc45/data/logs/ppc64le/build.log.
-
unicode.c:1065:5: warning: old-style function definition [-Wold-style-definition] 1065 | int UCS2precompose(first, second) | ^~~~~~~~~~~~~~ -
dsi.c:93:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 93 | dsi_setup_header(server,&dsi_opensession_header.dsi_header,DSI_DSIOpenSession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
unicode.c:1102:5: warning: old-style function definition [-Wold-style-definition] 1102 | int str16len(str16) | ^~~~~~~~ -
unicode.c:1119:9: warning: old-style function definition [-Wold-style-definition] 1119 | char16 *str16chr(str16, ch) | ^~~~~~~~ -
unicode.c:1140:6: warning: old-style function definition [-Wold-style-definition] 1140 | void str16cpy(dest, src) | ^~~~~~~~ -
unicode.c:1155:6: warning: old-style function definition [-Wold-style-definition] 1155 | void str16ncpy(dest, src, n) | ^~~~~~~~~ -
unicode.c:1173:6: warning: old-style function definition [-Wold-style-definition] 1173 | void str16cat(dest, src) | ^~~~~~~~ -
unicode.c:1188:5: warning: old-style function definition [-Wold-style-definition] 1188 | int mbCharLen(str) | ^~~~~~~~~ -
unicode.c:1221:5: warning: old-style function definition [-Wold-style-definition] 1221 | int mbStrLen(str) | ^~~~~~~~ -
dsi.c:628:33: warning: variable 'prev' set but not used [-Wunused-but-set-variable=] 628 | struct dsi_request *p, *prev=NULL; | ^~~~ -
unicode.c:1250:9: warning: old-style function definition [-Wold-style-definition] 1250 | char16 *UTF8toUCS2(str) | ^~~~~~~~~~ -
dsi.c:647:13: warning: variable 'rc' set but not used [-Wunused-but-set-variable=] 647 | int rc; | ^~ -
unicode.c:1321:7: warning: old-style function definition [-Wold-style-definition] 1321 | char *UCS2toUTF8(str16) | ^~~~~~~~~~ -
dsi.c:104:12: warning: 'check_incoming_dsi_message' defined but not used [-Wunused-function] 104 | static int check_incoming_dsi_message(struct afp_server * server, void * data, int size) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
did.c:181:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 181 | if (((p=strrchr(path,'/')))==NULL) return -1; | ^ -
did.c:174:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable=] 174 | int ret; | ^~~ -
afp.c:245:23: warning: variable 'emergency' set but not used [-Wunused-but-set-variable=] 245 | unsigned char emergency=0; | ^~~~~~~~~ -
uams.c:588:41: warning: pointer targets in passing argument 2 of 'gcry_mpi_print' differ in signedness [-Wpointer-sign] 588 | gcry_mpi_print(GCRYMPI_FMT_USG, d, Ma_len, &len, Ma); | ^ | | | char * -
uams.c:680:41: warning: pointer targets in passing argument 2 of 'gcry_mpi_print' differ in signedness [-Wpointer-sign] 680 | gcry_mpi_print(GCRYMPI_FMT_USG, d, nonce_len, &len, new_nonce); | ^ | | | char * -
uams.c:821:41: warning: pointer targets in passing argument 2 of 'gcry_mpi_print' differ in signedness [-Wpointer-sign] 821 | gcry_mpi_print(GCRYMPI_FMT_USG, K_binary, bignum_len, &len, K); | ^~~~~~~~ | | | char * -
uams.c:863:41: warning: pointer targets in passing argument 2 of 'gcry_mpi_print' differ in signedness [-Wpointer-sign] 863 | gcry_mpi_print(GCRYMPI_FMT_USG, d, bignum_len, &len, Ma); | ^ | | | char * -
uams.c:911:41: warning: pointer targets in passing argument 2 of 'gcry_mpi_print' differ in signedness [-Wpointer-sign] 911 | gcry_mpi_print(GCRYMPI_FMT_USG, nonce_binary, sizeof(nonce_binary), &len, | ^~~~~~~~~~~~ | | | char * -
uams.c:946:41: warning: pointer targets in passing argument 2 of 'gcry_mpi_print' differ in signedness [-Wpointer-sign] 946 | gcry_mpi_print(GCRYMPI_FMT_USG, d, sizeof(nonce_binary), &len, new_nonce); | ^ | | | char * -
codepage.c:63:23: warning: variable 'namelen' set but not used [-Wunused-but-set-variable=] 63 | unsigned char namelen; | ^~~~~~~ -
codepage.c:99:32: warning: passing argument 1 of 'UTF8toUCS2' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 99 | path16dec = UTF8toUCS2(src); | ^~~ -
utils.c:156:31: warning: variable 'header_len' set but not used [-Wunused-but-set-variable=] 156 | unsigned char offset, header_len, namelen; | ^~~~~~~~~~ -
utils.c:61:14: warning: 'len' may be used uninitialized [-Wmaybe-uninitialized] 61 | end=p+len; | ~^~~~ -
uams.c:427:9: warning: 'strncpy' specified bound 8 equals destination size [-Wstringop-truncation] 427 | strncpy(key_buffer, passwd, sizeof(key_buffer)); | ^ -
uams.c:315:9: warning: 'strncpy' specified bound 8 equals destination size [-Wstringop-truncation] 315 | strncpy(key_buffer, passwd, sizeof(key_buffer)); | ^ -
uams.c:953:9: warning: 'strncpy' specified bound 256 equals destination size [-Wstringop-truncation] 953 | strncpy(d, passwd, 256); | ^ -
resource.c:37:15: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 37 | if ((p=strrchr(path,'/'))==NULL) | ^ -
resource.c:57:15: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 57 | if ((p=strstr(path,appledouble))) { | ^ -
resource.c:215:22: warning: unused variable 'did' [-Wunused-variable] 215 | unsigned int did; | ^~~ -
resource.c:358:59: warning: pointer targets in passing argument 4 of 'get_dirid' differ in signedness [-Wpointer-sign] 358 | get_dirid(volume,newpath,basename,&dirid); | ^~~~~~ | | | int * -
resource.c:528:1: warning: no return statement in function returning non-void [-Wreturn-type] 528 | } | ^ -
resource.c:543:34: warning: unused variable 'newfp' [-Wunused-variable] 543 | *newfp=NULL, *newchain=NULL, *last=NULL; | ^~~~~ -
resource.c:542:52: warning: unused variable 'prev' [-Wunused-variable] 542 | struct afp_file_info *fp, *prev=NULL, | ^~~~ -
uams.c:687:9: warning: 'strncpy' specified bound 64 equals destination size [-Wstringop-truncation] 687 | strncpy(d, passwd, 64); | ^ -
loop.c:268:1: warning: label 'error' defined but not used [-Wunused-label] 268 | error: | ^~~~~ -
loop.c:96:1: warning: control reaches end of non-void function [-Wreturn-type] 96 | } | ^ -
midlevel.c:81:13: warning: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Wparentheses] 81 | if (!vol->extra_flags & VOLUME_EXTRA_FLAGS_VOL_SUPPORTS_UNIX) | ^~~~~~~~~~~~~~~~~ -
midlevel.c:223:23: warning: unused variable 'aflags' [-Wunused-variable] 223 | unsigned char aflags = AFP_OPENFORK_ALLOWREAD; | ^~~~~~ -
midlevel.c:220:14: warning: unused variable 'resource' [-Wunused-variable] 220 | char resource=0; | ^~~~~~~~ -
midlevel.c:219:13: warning: unused variable 'create_file' [-Wunused-variable] 219 | int create_file=0; | ^~~~~~~~~~~ -
midlevel.c:218:26: warning: unused variable 'rc' [-Wunused-variable] 218 | int ret, dsi_ret,rc; | ^~ -
midlevel.c:218:18: warning: unused variable 'dsi_ret' [-Wunused-variable] 218 | int ret, dsi_ret,rc; | ^~~~~~~ -
midlevel.c:271:14: warning: unused variable 'resource' [-Wunused-variable] 271 | char resource; | ^~~~~~~~ -
midlevel.c:402:30: warning: unused variable 'buffer' [-Wunused-variable] 402 | struct afp_rx_buffer buffer; | ^~~~~~ -
midlevel.c:400:22: warning: unused variable 'bufsize' [-Wunused-variable] 400 | unsigned int bufsize=min(volume->server->rx_quantum,size); | ^~~~~~~ -
midlevel.c:399:13: warning: unused variable 'rc' [-Wunused-variable] 399 | int rc; | ^~ -
midlevel.c:397:13: warning: unused variable 'totalsize' [-Wunused-variable] 397 | int totalsize=0; | ^~~~~~~~~ -
midlevel.c:396:13: warning: unused variable 'bytesleft' [-Wunused-variable] 396 | int bytesleft=size; | ^~~~~~~~~ -
midlevel.c:720:15: warning: unused variable 'o' [-Wunused-variable] 720 | off_t o=0; | ^ -
midlevel.c:719:22: warning: unused variable 'max_packet_size' [-Wunused-variable] 719 | unsigned int max_packet_size=volume->server->tx_quantum; | ^~~~~~~~~~~~~~~ -
midlevel.c:718:23: warning: variable 'flags' set but not used [-Wunused-but-set-variable=] 718 | unsigned char flags = 0; | ^~~~~ -
midlevel.c:717:31: warning: unused variable 'ignored' [-Wunused-variable] 717 | uint64_t sizetowrite, ignored; | ^~~~~~~ -
midlevel.c:717:18: warning: unused variable 'sizetowrite' [-Wunused-variable] 717 | uint64_t sizetowrite, ignored; | ^~~~~~~~~~~ -
midlevel.c:715:17: warning: unused variable 'err' [-Wunused-variable] 715 | int ret,err=0; | ^~~ -
resource.c:332:32: warning: 'ret' may be used uninitialized [-Wmaybe-uninitialized] 332 | return ret; | ^~~ -
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_directory.c:74:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 74 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_directory.c:123:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 123 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_directory.c:168:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 168 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_directory.c:216:16: warning: 'packed' attribute ignored [-Wattributes] 216 | struct reply_entry __attribute__((__packed__)) * entry; | ^~~~~~~~~~~ -
proto_directory.c:272:16: warning: 'packed' attribute ignored [-Wattributes] 272 | struct ext2_reply_entry __attribute__((__packed__)) * entry; | ^~~~~~~~~~~~~~~~ -
proto_directory.c:275:16: warning: unused variable 'max' [-Wunused-variable] 275 | char *max=buf+size; | ^~~ -
proto_directory.c:356:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 356 | dsi_setup_header(server,&afp_enumerate_request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_directory.c:416:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 416 | dsi_setup_header(server,&afp_enumerateext2_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_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_files.c:52:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 52 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_files.c:35:24: warning: variable 'result_bitmap' set but not used [-Wunused-but-set-variable=] 35 | unsigned short result_bitmap=0; | ^~~~~~~~~~~~~ -
proto_files.c:167:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 167 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_files.c:201:41: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 201 | dsi_setup_header(volume->server,&readext_packet.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_files.c:250:41: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 250 | dsi_setup_header(volume->server,&readext_packet.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_files.c:340:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 340 | dsi_setup_header(server,&getfiledirparms->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_files.c:379:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 379 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_files.c:421:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 421 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSIWrite); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_files.c:480:33: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member] 480 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSIWrite); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
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_volume.c:24:24: warning: variable 'name_offset' set but not used [-Wunused-but-set-variable=] 24 | unsigned short name_offset = 0; | ^~~~~~~~~~~ -
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_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); | ^~~~~~~~~~~~~~~~~~~ -
afp_url.c:107:24: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 107 | return strrchr(haystack,c); | ^~~~~~~ -
afp_url.c:109:15: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 109 | if ((p=strrchr(haystack,c))==NULL) | ^ -
afp_url.c:127:24: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 127 | return strchr(haystack,c); | ^~~~~~ -
afp_url.c:129:15: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 129 | if ((p=strchr(haystack,c))==NULL) | ^ -
afp_url.c:174:15: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 174 | if ((p=strstr(toparse,"://"))!=NULL) { | ^ -
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:279:52: warning: '%s' directive output may be truncated writing up to 248 bytes into a region of size 50 [-Wformat-truncation=] 279 | snprintf(url->uamname,strlen(q)+1,"%s",q); | ^~ -
afp_url.c:287:53: warning: '%s' directive output may be truncated writing up to 254 bytes into a region of size 127 [-Wformat-truncation=] 274 | p=firstpart; | ~~~~~~~~~ -
afp_url.c:307:47: warning: '%s' directive output may be truncated writing up to 2047 bytes into a region of size 33 [-Wformat-truncation=] 302 | p=secondpart; | ~~~~~~~~~~ -
afp_url.c:312:51: warning: '%s' directive output may be truncated writing up to 2046 bytes into a region of size 767 [-Wformat-truncation=] 312 | snprintf(url->path+1,strlen(q)+1,"%s",q); | ^~ -
debug.c:62:33: warning: array subscript has type 'char' [-Wchar-subscripts] 62 | return afp_command_names[code]; | ^ -
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:216:18: warning: overflow in conversion from 'int' to 'char' changes value from 'flags & 1183744' to '0' [-Woverflow] 216 | fp->sync=(flags & (O_SYNC | O_DIRECT)); | ^ -
lowlevel.c:327:1: warning: label 'out' defined but not used [-Wunused-label] 327 | out: | ^~~ -
lowlevel.c:188:14: warning: unused variable 'converted_path' [-Wunused-variable] 188 | char converted_path[AFP_MAX_PATH]; | ^~~~~~~~~~~~~~ -
lowlevel.c:186:26: warning: variable 'rc' set but not used [-Wunused-but-set-variable=] 186 | int ret, dsi_ret,rc; | ^~ -
lowlevel.c:345:16: warning: unused variable 'amount_copied' [-Wunused-variable] 345 | size_t amount_copied; | ^~~~~~~~~~~~~ -
lowlevel.c:339:13: warning: variable 'bytesleft' set but not used [-Wunused-but-set-variable=] 339 | int bytesleft=size; | ^~~~~~~~~ -
lowlevel.c:501:43: warning: taking address of packed member of 'struct afp_unixprivs' may result in an unaligned pointer value [-Waddress-of-packed-member] 501 | set_nonunix_perms(&p->unixprivs.permissions, p); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
lowlevel.c:638:23: warning: unused variable 'flags' [-Wunused-variable] 638 | unsigned char flags = 0; | ^~~~~ -
client.c:189:13: warning: variable ‘optnum’ set but not used [-Wunused-but-set-variable=] 189 | int optnum; | ^~~~~~ -
client.c:561:27: warning: variable ‘volume’ set but not used [-Wunused-but-set-variable=] 561 | struct afp_volume volume; | ^~~~~~ -
fuse_error.c:44:9: warning: ignoring return value of ‘freopen’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 44 | freopen(TMP_FILE, "a", stderr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
fuse_int.c:442:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 442 | if ((c=strstr(path,"(null)"))) { | ^ -
daemon.c:225:13: warning: variable ‘optnum’ set but not used [-Wunused-but-set-variable=] 225 | int optnum; | ^~~~~~ -
commands.c:479:21: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable=] 479 | int ret; | ^~~ -
commands.c:202:47: warning: ‘%s’ directive output may be truncated writing up to 254 bytes into a region of size 68 [-Wformat-truncation=] 202 | snprintf(mountstring,mountstring_len,"%s:%s", | ^~ -
cmdline_afp.c:144:18: warning: variable ‘t2’ set but not used [-Wunused-but-set-variable=] 144 | time_t t,t2; | ^~ -
cmdline_afp.c:377:13: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable=] 377 | int ret; | ^~~ -
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:407:13: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable=] 407 | int ret; | ^~~ -
getstatus.c:59:1: warning: label ‘out’ defined but not used [-Wunused-label] 59 | out: | ^~~ -
getstatus.c:15:16: warning: variable ‘firsttime’ set but not used [-Wunused-but-set-variable=] 15 | int j, firsttime=0; | ^~~~~~~~~ -
getstatus.c:12:25: warning: unused variable ‘h’ [-Wunused-variable] 12 | struct hostent *h; | ^ -
getstatus.c:74:19: warning: unused variable ‘loop_thread’ [-Wunused-variable] 74 | pthread_t loop_thread; | ^~~~~~~~~~~ -
cmdline_afp.c:1150:21: warning: unused variable ‘i’ [-Wunused-variable] 1150 | int i; | ^ -
cmdline_afp.c:1083:9: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1083 | chdir(path); | ^~~~~~~~~~~ -
cmdline_afp.c:1102:9: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1102 | chdir(".."); | ^~~~~~~~~~~ -
cmdline_afp.c:1106:9: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1106 | chdir(".."); | ^~~~~~~~~~~ -
cmdline_afp.c:640:9: warning: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 640 | chown(localfilename,stat.st_uid,stat.st_gid); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
cmdline_afp.c:934:17: warning: ignoring return value of ‘getcwd’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 934 | getcwd(curpath,PATH_MAX); | ^~~~~~~~~~~~~~~~~~~~~~~~ -
cmdline_afp.c:1049:9: warning: ignoring return value of ‘getcwd’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1049 | getcwd(dir,255); | ^~~~~~~~~~~~~~~ -
cmdline_main.c:385:16: warning: variable ‘optnum’ set but not used [-Wunused-but-set-variable=] 385 | int c, optnum; | ^~~~~~ -
cmdline_main.c:90:15: warning: ‘remote_generator’ defined but not used [-Wunused-function] 90 | static char * remote_generator (const char *text, int state) | ^~~~~~~~~~~~~~~~ -
cmdline_main.c:332:17: warning: ‘strncpy’ specified bound 1024 equals destination size [-Wstringop-truncation] 332 | strncpy(s2,s,ARG_LEN); | ^ -
cmdline_afp.c:256:9: warning: ‘strncpy’ specified bound 127 equals destination size [-Wstringop-truncation] 256 | strncpy(url.password,arg,AFP_MAX_PASSWORD_LEN); | ^ -
cmdline_afp.c:269:9: warning: ‘strncpy’ specified bound 127 equals destination size [-Wstringop-truncation] 269 | strncpy(url.username,arg,AFP_MAX_PASSWORD_LEN); | ^ -
cmdline_afp.c:122:17: warning: ‘strncpy’ specified bound 127 equals destination size [-Wstringop-truncation] 122 | strncpy(url.password,passwd,AFP_MAX_PASSWORD_LEN); | ^ -
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:850:9: warning: ‘strncpy’ specified bound 127 equals destination size [-Wstringop-truncation] 850 | strncpy(newpass,p,AFP_MAX_PASSWORD_LEN); | ^ -
cmdline_afp.c:1226:9: warning: ‘strncpy’ specified bound 127 equals destination size [-Wstringop-truncation] 1226 | strncpy(url.username, passwd->pw_name,AFP_MAX_USERNAME_LEN); | ^