Snippets for addrwatch 1.0.2 from FreeBSD 150arm64
Sourced from https://pkg-status.freebsd.org/ampere5/data/latest-per-pkg/addrwatch/1.0.2_2/150arm64-default.log.
-
util.c:31:2: warning: call to undeclared library function 'memset' with type 'void *(void *, int, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 31 | memset(&_ctx, 0, sizeof(_ctx)); | ^ -
addrwatch.c:534:9: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] 534 | dev = pcap_lookupdev(errbuf); | ^ -
check.c:81:29: warning: taking address of packed member 'nd_ns_target' of class or structure 'nd_neighbor_solicit' may result in an unaligned pointer value [-Waddress-of-packed-member] 81 | if (IN6_IS_ADDR_MULTICAST(&ns->nd_ns_target)) { | ^~~~~~~~~~~~~~~~ -
check.c:89:31: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] 89 | if (IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_src)) { | ^~~~~~~~~~~~ -
check.c:90:34: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] 90 | if (!IN6_IS_ADDR_SN_MULTICAST(&ip6->ip6_dst, &ns->nd_ns_target)) { | ^~~~~~~~~~~~ -
check.c:135:29: warning: taking address of packed member 'nd_na_target' of class or structure 'nd_neighbor_advert' may result in an unaligned pointer value [-Waddress-of-packed-member] 135 | if (IN6_IS_ADDR_MULTICAST(&na->nd_na_target)) { | ^~~~~~~~~~~~~~~~ -
check.c:143:29: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] 143 | if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) | ^~~~~~~~~~~~ -
base64.c:51:2: warning: call to undeclared library function 'memset' with type 'void *(void *, int, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 51 | memset(pkt_buffer, 0, sizeof(pkt_buffer)); | ^ -
storage.c:71:7: warning: call to undeclared library function 'memcmp' with type 'int (const void *, const void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 71 | if (memcmp(ip_addr, ip->ip_addr, addr_len) != 0) { | ^ -
output_sqlite.c:6:19: warning: unused variable 'sqlite_create_template' [-Wunused-const-variable] 6 | static const char sqlite_create_template[] = "\ | ^~~~~~~~~~~~~~~~~~~~~~ -
output_sqlite.c:16:19: warning: unused variable 'sqlite_insert_template' [-Wunused-const-variable] 16 | static const char sqlite_insert_template[] = "INSERT INTO %s VALUES(?, ?, ?, ?, ?, ?);"; | ^~~~~~~~~~~~~~~~~~~~~~ -
output_shm.c:58:2: warning: call to undeclared library function 'strncpy' with type 'char *(char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 58 | strncpy((char *)e->interface, p->ifc->name, IFNAMSIZ); | ^ -
output_shm.c:59:2: warning: call to undeclared library function 'memcpy' with type 'void *(void *, const void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 59 | memcpy(e->ip_address, p->ip_addr, p->ip_len); | ^