BIND 10 master, updated. 4df19b60af5ade5f1705fbb76a90fbca0e6b7fba [master] Merge branch 'trac2705'
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Feb 22 16:44:11 UTC 2013
The branch, master has been updated
via 4df19b60af5ade5f1705fbb76a90fbca0e6b7fba (commit)
via 563843956a6102cc3da274eb79413dc6b0d411c4 (commit)
via 1c1d2c888dbadc9cf707b8f49ced2403e864cd8c (commit)
from 7a34e78976f20bec3f0e8287cb44a4ed7e351924 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 4df19b60af5ade5f1705fbb76a90fbca0e6b7fba
Merge: 7a34e78 5638439
Author: JINMEI Tatuya <jinmei at isc.org>
Date: Fri Feb 22 08:23:38 2013 -0800
[master] Merge branch 'trac2705'
-----------------------------------------------------------------------
Summary of changes:
configure.ac | 6 ++++--
src/lib/asiodns/sync_udp_server.cc | 2 +-
src/lib/asiodns/sync_udp_server.h | 2 --
src/lib/cache/local_zone_data.h | 9 ++++++---
src/lib/dhcpsrv/pool.cc | 5 +++--
5 files changed, 14 insertions(+), 10 deletions(-)
-----------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index c9f398a..f2bdf0b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -161,8 +161,10 @@ if test $with_werror = 1; then
CXXFLAGS_SAVED="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS $B10_CXXFLAGS -Werror"
AC_MSG_CHECKING(for in-TU anonymous namespace breakage)
- AC_TRY_COMPILE([namespace { class Foo {}; }
- namespace isc {class Bar {Foo foo_;};} ],,
+ # We use struct, not class, here, because some compilers complain about
+ # "unused private members", causing a false positive.
+ AC_TRY_COMPILE([namespace { struct Foo {}; }
+ namespace isc {struct Bar {Foo foo_;};} ],,
[AC_MSG_RESULT(no)
werror_ok=1
B10_CXXFLAGS="$B10_CXXFLAGS -Werror"],
diff --git a/src/lib/asiodns/sync_udp_server.cc b/src/lib/asiodns/sync_udp_server.cc
index 95e1c72..c3f5348 100644
--- a/src/lib/asiodns/sync_udp_server.cc
+++ b/src/lib/asiodns/sync_udp_server.cc
@@ -44,7 +44,7 @@ SyncUDPServer::SyncUDPServer(asio::io_service& io_service, const int fd,
output_buffer_(new isc::util::OutputBuffer(0)),
query_(new isc::dns::Message(isc::dns::Message::PARSE)),
answer_(new isc::dns::Message(isc::dns::Message::RENDER)),
- io_(io_service), checkin_callback_(checkin), lookup_callback_(lookup),
+ checkin_callback_(checkin), lookup_callback_(lookup),
answer_callback_(answer), stopped_(false)
{
if (af != AF_INET && af != AF_INET6) {
diff --git a/src/lib/asiodns/sync_udp_server.h b/src/lib/asiodns/sync_udp_server.h
index ddac1f9..14ec42a 100644
--- a/src/lib/asiodns/sync_udp_server.h
+++ b/src/lib/asiodns/sync_udp_server.h
@@ -118,8 +118,6 @@ private:
isc::dns::MessagePtr query_, answer_;
// The socket used for the communication
std::auto_ptr<asio::ip::udp::socket> socket_;
- // The event loop we use
- asio::io_service& io_;
// Place the socket puts the sender of a packet when it is received
asio::ip::udp::endpoint sender_;
// Callbacks
diff --git a/src/lib/cache/local_zone_data.h b/src/lib/cache/local_zone_data.h
index 4bfdb94..fd76a1b 100644
--- a/src/lib/cache/local_zone_data.h
+++ b/src/lib/cache/local_zone_data.h
@@ -29,8 +29,12 @@ namespace cache {
/// in the zone.
class LocalZoneData {
public:
- LocalZoneData(uint16_t rrset_class) : class_(rrset_class)
- {}
+ /// \brief Constructor.
+ ///
+ /// The passed parameter is expected to be an RR class value, but is not
+ /// currently unused. And this library will be quite likely to
+ /// deprecated anyway, so we don't touch it heavily.
+ LocalZoneData(uint16_t) {}
/// \brief Look up one rrset.
///
@@ -51,7 +55,6 @@ public:
private:
std::map<std::string, isc::dns::RRsetPtr> rrsets_map_; // RRsets of the zone
- uint16_t class_; // The class of the zone
};
typedef boost::shared_ptr<LocalZoneData> LocalZoneDataPtr;
diff --git a/src/lib/dhcpsrv/pool.cc b/src/lib/dhcpsrv/pool.cc
index 3548762..7b8a4ea 100644
--- a/src/lib/dhcpsrv/pool.cc
+++ b/src/lib/dhcpsrv/pool.cc
@@ -102,8 +102,9 @@ Pool6::Pool6(Pool6Type type, const isc::asiolink::IOAddress& prefix,
isc_throw(BadValue, "Invalid Pool6 address boundaries: not IPv6");
}
- // check if the prefix length is sane
- if (prefix_len == 0 || prefix_len > 128) {
+ // check if the prefix length is sane (we use the member variable only
+ // for silencing some compilers; see #2705 and #2789).
+ if (prefix_len_ == 0 || prefix_len_ > 128) {
isc_throw(BadValue, "Invalid prefix length");
}
More information about the bind10-changes
mailing list