Snippets for afpfs-ng 0.8.1 from FreeBSD 150arm64
Sourced from https://pkg-status.freebsd.org/ampere5/data/latest-per-pkg/afpfs-ng/0.8.1_7/150arm64-default.log.
-
codepage.c:99:24: warning: passing arguments to 'UTF8toUCS2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | path16dec = UTF8toUCS2(src); | ^ -
codepage.c:107:25: warning: passing arguments to 'UCS2precompose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 107 | comp = UCS2precompose(prev, c); | ^ -
codepage.c:129:33: warning: passing arguments to 'UCS2toUTF8' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | pathUTF8pre = UCS2toUTF8(path16pre); | ^ -
afp.c:668:9: warning: call to undeclared function 'afp_server_identify'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 668 | afp_server_identify(server); | ^ -
dsi.c:92:27: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at dsi.c:85:2)' 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:13: warning: cast to smaller integer type 'unsigned int' from 'char *' [-Wpointer-to-int-cast] 481 | p=(void *)((unsigned int) server->incoming_buffer + sizeof(*reply1)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
dsi.c:531:3: warning: call to undeclared function 'convert_utf8dec_to_utf8pre'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 531 | convert_utf8dec_to_utf8pre(server->server_name_utf8, | ^ -
dsi.c:765:5: warning: cast to smaller integer type 'unsigned int' from 'char *' [-Wpointer-to-int-cast] 765 | (((unsigned int) server->incoming_buffer)+server->data_read), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
dsi.c:764:26: warning: cast to 'void *' from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] 764 | ret = read(server->fd, (void *) | ^~~~~~~~ 765 | (((unsigned int) server->incoming_buffer)+server->data_read), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
uams.c:53:3: warning: incompatible function pointer types initializing 'int (*)(struct afp_server *, char *, char *, char *)' with an expression of type 'int (*)(struct afp_server *, char *, char *)' [-Wincompatible-function-pointer-types] 53 | &cleartxt_passwd,NULL}; | ^~~~~~~~~~~~~~~~ -
unicode.c:1065:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1065 | int UCS2precompose(first, second) | ^ -
./unicode.h:190:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 190 | extern int UCS2precompose( | ^ -
unicode.c:1102:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1102 | int str16len(str16) | ^ -
./unicode.h:58:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 58 | extern int str16len( | ^ -
unicode.c:1119:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1119 | char16 *str16chr(str16, ch) | ^ -
./unicode.h:72:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 72 | extern char16 *str16chr( | ^ -
unicode.c:1140:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1140 | void str16cpy(dest, src) | ^ -
./unicode.h:85:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 85 | extern void str16cpy( | ^ -
unicode.c:1155:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1155 | void str16ncpy(dest, src, n) | ^ -
./unicode.h:100:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 100 | extern void str16ncpy( | ^ -
unicode.c:1173:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1173 | void str16cat(dest, src) | ^ -
./unicode.h:114:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 114 | extern void str16cat( | ^ -
unicode.c:1188:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1188 | int mbCharLen(str) | ^ -
./unicode.h:128:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 128 | extern int mbCharLen( | ^ -
unicode.c:1221:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1221 | int mbStrLen(str) | ^ -
./unicode.h:142:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 142 | extern int mbStrLen( | ^ -
unicode.c:1250:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1250 | char16 *UTF8toUCS2(str) | ^ -
./unicode.h:163:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 163 | extern char16 *UTF8toUCS2( | ^ -
unicode.c:1321:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1321 | char *UCS2toUTF8(str16) | ^ -
./unicode.h:175:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 175 | extern char *UCS2toUTF8( | ^ -
resource.c:357:38: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 357 | get_dirid(volume,newpath,basename,&dirid); | ^~~~~~ -
resource.c:365:5: warning: call to undeclared function 'remove_opened_fork'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 365 | remove_opened_fork(volume,fp); | ^ -
resource.c:370:4: warning: call to undeclared function 'remove_opened_fork'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 370 | remove_opened_fork(volume,fp); | ^ -
midlevel.c:81:6: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 81 | if (!vol->extra_flags & VOLUME_EXTRA_FLAGS_VOL_SUPPORTS_UNIX) | ^ ~ -
midlevel.c:735:6: warning: call to undeclared function 'appledouble_write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 735 | ret=appledouble_write(volume,fp,data,size,offset,&totalwritten); | ^ -
proto_attr.c:39:27: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_attr.c:22:2)' 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:27: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_attr.c:57:2)' 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:27: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_attr.c:129:2)' 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:27: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_attr.c:190:2)' 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:35: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_desktop.c:24:2)' 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:35: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_desktop.c:73:2)' 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:35: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_desktop.c:120:2)' 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:27: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_desktop.c:173:2)' 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:35: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_desktop.c:193:2)' 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:27: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_directory.c:24:2)' 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:27: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_directory.c:90:2)' 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:27: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_directory.c:135:2)' 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:9: warning: incompatible pointer types assigning to 'struct (unnamed struct at proto_directory.c:262:2) *' from 'char *' [-Wincompatible-pointer-types] 296 | entry = p; | ^ ~ -
proto_directory.c:350:27: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_directory.c:320:2)' 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:27: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_directory.c:380:2)' 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:27: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_files.c:25:2)' 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:27: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_files.c:147:2)' 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:35: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_files.c:189:2)' 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:35: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_files.c:240:2)' 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:299:2: warning: call to undeclared function 'parse_reply_block'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 299 | parse_reply_block(server, | ^ -
proto_files.c:339:27: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_files.c:315:2)' 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:27: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_files.c:361:2)' 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:27: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_files.c:399:2)' 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:27: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_files.c:458:2)' may result in an unaligned pointer value [-Waddress-of-packed-member] 479 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSIWrite); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
proto_login.c:27:27: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_login.c:22:2)' 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:27: warning: taking address of packed member 'header' of class or structure 'struct (unnamed at proto_login.c:60:2)' may result in an unaligned pointer value [-Waddress-of-packed-member] 75 | dsi_setup_header(server,&request->header,DSI_DSICommand); | ^~~~~~~~~~~~~~~ -
proto_login.c:130:27: warning: taking address of packed member 'header' of class or structure 'struct (unnamed at proto_login.c:115:2)' may result in an unaligned pointer value [-Waddress-of-packed-member] 130 | dsi_setup_header(server,&request->header,DSI_DSICommand); | ^~~~~~~~~~~~~~~ -
proto_login.c:169:28: warning: taking address of packed member 'header' of class or structure 'struct (unnamed at proto_login.c:152:2)' may result in an unaligned pointer value [-Waddress-of-packed-member] 169 | dsi_setup_header(server, &request->header, DSI_DSICommand); | ^~~~~~~~~~~~~~~ -
proto_fork.c:45:35: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_fork.c:26:2)' 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:35: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_fork.c:67:2)' 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:35: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_fork.c:87:2)' 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:32: warning: taking address of packed member 'header' of class or structure 'struct (unnamed at proto_fork.c:107:2)' 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:27: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_fork.c:138:2)' 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:35: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_fork.c:184:2)' 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:35: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_fork.c:227:2)' may result in an unaligned pointer value [-Waddress-of-packed-member] 237 | dsi_setup_header(volume->server,&request.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~ -
proto_map.c:38:27: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_map.c:28:2)' 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:27: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_map.c:94:2)' 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:27: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_map.c:133:2)' 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:27: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_server.c:20:2)' 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:27: warning: taking address of packed member 'dsi_header' of class or structure '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:27: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_server.c:144:2)' 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:35: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_volume.c:96:2)' 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:35: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_volume.c:147:2)' 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:35: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_volume.c:227:2)' 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:35: warning: taking address of packed member 'dsi_header' of class or structure 'struct (unnamed at proto_volume.c:248:2)' 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:28: warning: taking address of packed member 'header' of class or structure 'struct (unnamed at proto_session.c:20:2)' may result in an unaligned pointer value [-Waddress-of-packed-member] 70 | dsi_setup_header(server, &request->header, DSI_DSICommand); | ^~~~~~~~~~~~~~~ -
proto_session.c:136:28: warning: taking address of packed member 'header' of class or structure 'struct (unnamed at proto_session.c:117:2)' may result in an unaligned pointer value [-Waddress-of-packed-member] 136 | dsi_setup_header(server, &request->header, DSI_DSICommand); | ^~~~~~~~~~~~~~~ -
afp_url.c:238:39: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 238 | snprintf(url->servername,strlen(p)+1,p); | ^ -
afp_url.c:268:38: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 268 | snprintf(url->password,strlen(q)+1,q); | ^ -
afp_url.c:281:37: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 281 | snprintf(url->uamname,strlen(q)+1,q); | ^ -
afp_url.c:289:38: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
-
afp_url.c:309:39: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 309 | snprintf(url->volumename,strlen(p)+1,p); | ^ -
afp_url.c:314:36: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 314 | snprintf(url->path+1,strlen(q)+1,q); | ^ -
status.c:39:3: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat] 38 | " did cache stats: %llu miss, %llu hit, %llu expired, %llu force removal\n uid/gid mapping: %s (%d/%d)\n", | ~~~~ | %lu 39 | v->did_cache_stats.misses, v->did_cache_stats.hits, | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
status.c:39:30: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat] 38 | " did cache stats: %llu miss, %llu hit, %llu expired, %llu force removal\n uid/gid mapping: %s (%d/%d)\n", | ~~~~ | %lu 39 | v->did_cache_stats.misses, v->did_cache_stats.hits, | ^~~~~~~~~~~~~~~~~~~~~~~ -
status.c:40:3: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat] 38 | " did cache stats: %llu miss, %llu hit, %llu expired, %llu force removal\n uid/gid mapping: %s (%d/%d)\n", | ~~~~ | %lu 39 | v->did_cache_stats.misses, v->did_cache_stats.hits, 40 | v->did_cache_stats.expired, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
status.c:41:3: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat] 38 | " did cache stats: %llu miss, %llu hit, %llu expired, %llu force removal\n uid/gid mapping: %s (%d/%d)\n", | ~~~~ | %lu 39 | v->did_cache_stats.misses, v->did_cache_stats.hits, 40 | v->did_cache_stats.expired, 41 | v->did_cache_stats.force_removed, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
status.c:135:19: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat] 131 | " last request id: %d in queue: %llu\n", | ~~~~ | %lu 132 | signature_string, 133 | s->tx_delay, 134 | s->tx_quantum, s->rx_quantum, 135 | s->lastrequestid,s->stats.requests_pending); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
status.c:146:2: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat] 144 | " transfer: %llu(rx) %llu(tx)\n" | ~~~~ | %lu 145 | " runt packets: %llu\n", 146 | s->stats.rx_bytes,s->stats.tx_bytes, | ^~~~~~~~~~~~~~~~~ -
status.c:146:20: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat] 144 | " transfer: %llu(rx) %llu(tx)\n" | ~~~~ | %lu 145 | " runt packets: %llu\n", 146 | s->stats.rx_bytes,s->stats.tx_bytes, | ^~~~~~~~~~~~~~~~~ -
status.c:147:2: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat] 145 | " runt packets: %llu\n", | ~~~~ | %lu 146 | s->stats.rx_bytes,s->stats.tx_bytes, 147 | s->stats.runt_packets); | ^~~~~~~~~~~~~~~~~~~~~ -
lowlevel.c:280:5: warning: call to undeclared function 'ml_creat'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 280 | (ml_creat(volume,path,0644)==0)) { | ^ -
lowlevel.c:314:2: warning: call to undeclared function 'add_opened_fork'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 314 | add_opened_fork(volume, fp); | ^ -
lowlevel.c:257:40: warning: result of comparison of constant 4294967295 with expression of type 'unsigned short' is always false [-Wtautological-constant-out-of-range-compare] 257 | if ((fp->resource ? (fp->resourcesize>=(AFP_MAX_AFP2_FILESIZE-1)) : | ~~~~~~~~~~~~~~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~ -
lowlevel.c:499:23: warning: taking address of packed member 'permissions' of class or structure 'afp_unixprivs' may result in an unaligned pointer value [-Waddress-of-packed-member] 499 | set_nonunix_perms(&p->unixprivs.permissions, p); | ^~~~~~~~~~~~~~~~~~~~~~~~ -
lowlevel.c:585:21: warning: incompatible pointer types passing 'mode_t *' (aka 'unsigned short *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types] 585 | set_nonunix_perms(&stbuf->st_mode,&fp); | ^~~~~~~~~~~~~~~ -
cmdline_testafp.c:17:2: warning: declaration of 'enum (unnamed at cmdline_testafp.c:17:2)' will not be visible outside of this function [-Wvisibility] 17 | enum {TCPIP,AT} protocol, | ^ -
cmdline_testafp.c:29:31: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 29 | sprintf(valid_url.servername,servername); | ^~~~~~~~~~ -
cmdline_testafp.c:30:31: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 30 | sprintf(valid_url.volumename,volumename); | ^~~~~~~~~~ -
cmdline_testafp.c:31:25: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 31 | sprintf(valid_url.path,path); | ^~~~ -
cmdline_testafp.c:32:29: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 32 | sprintf(valid_url.username,username); | ^~~~~~~~ -
cmdline_testafp.c:33:29: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 33 | sprintf(valid_url.password,password); | ^~~~~~~~ -
cmdline_testafp.c:34:28: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 34 | sprintf(valid_url.uamname,uamname); | ^~~~~~~ -
cmdline_main.c:181:12: warning: incompatible function pointer types initializing 'int (*)(char *)' with an expression of type 'int (void)' [-Wincompatible-function-pointer-types] 181 | { "test",test_urls,"URL parsing test",1}, | ^~~~~~~~~ -
cmdline_main.c:416:2: warning: call to undeclared function 'cmdline_afp_setup_client'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 416 | cmdline_afp_setup_client(); | ^ -
cmdline_main.c:418:2: warning: call to undeclared function 'afp_main_quick_startup'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 418 | afp_main_quick_startup(NULL); | ^ -
cmdline_afp.c:420:20: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] 420 | printf("Mode of %s isn't octal\n"); | ~^ -
cmdline_afp.c:831:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 831 | printf(text); | ^~~~ -
cmdline_afp.c:835:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 835 | printf(text); | ^~~~ -
cmdline_afp.c:1220:2: warning: 'snprintf' size argument is too large; destination buffer has size 768, but size argument is 1024 [-Wfortify-source] 1220 | snprintf(curdir,PATH_MAX,"%s",DEFAULT_DIRECTORY); | ^