diff --git a/src/address.cc b/src/address.cc index 23d1983..0b1357e 100644 --- a/src/address.cc +++ b/src/address.cc @@ -194,7 +194,7 @@ const std::string address::to_string() const bool address::parse_string(const std::string& str) { char buf[INET6_ADDRSTRLEN],* b; - int sz, pfx; + int sz; sz = 0; b = buf; diff --git a/src/conf.cc b/src/conf.cc index a22b44e..f3a0132 100644 --- a/src/conf.cc +++ b/src/conf.cc @@ -216,8 +216,6 @@ void conf::dump(int pri) const void conf::dump(logger& l, int level) const { - int i; - std::string pfx; for (int i = 0; i < level; i++) { pfx += " "; diff --git a/src/iface.cc b/src/iface.cc index 73b8482..3ce893f 100644 --- a/src/iface.cc +++ b/src/iface.cc @@ -282,7 +282,6 @@ ssize_t iface::read(int fd, struct sockaddr* saddr, uint8_t* msg, size_t size) { struct msghdr mhdr; struct iovec iov; - char cbuf[256]; int len; if (!msg || (size < 0)) @@ -350,9 +349,6 @@ ssize_t iface::read_solicit(address& saddr, address& daddr, address& taddr) struct ip6_hdr* ip6h = (struct ip6_hdr* )(msg + ETH_HLEN); - struct icmp6_hdr* icmph = - (struct icmp6_hdr* )(msg + ETH_HLEN + sizeof( struct ip6_hdr)); - struct nd_neighbor_solicit* ns = (struct nd_neighbor_solicit* )(msg + ETH_HLEN + sizeof( struct ip6_hdr)); diff --git a/src/ptr.h b/src/ptr.h index 5b210b0..4e24294 100644 --- a/src/ptr.h +++ b/src/ptr.h @@ -117,7 +117,6 @@ protected: template void acquire(const ptr& ptr) { - T* t = static_cast(0); acquire(ptr._ref); }