Browse Source

fixed compilation issue by reordering include statements and adding a warning suppression
See https://lists.isc.org/pipermail/bind10-dev/2010-April/000808.html
jinmei approved this patch


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1782 e5f2f494-b856-4b98-b285-d166d9295462

Jelte Jansen 15 years ago
parent
commit
eb211c5995
2 changed files with 4 additions and 3 deletions
  1. 2 2
      src/lib/dns/python_dns.cc
  2. 2 1
      src/lib/xfr/Makefile.am

+ 2 - 2
src/lib/dns/python_dns.cc

@@ -14,8 +14,6 @@
 
 // $Id: message_python.cc 2010-03-08 18:44:00 feng $
 
-#include <cassert>
-
 #include <boost/python.hpp>
 #include <boost/python/class.hpp>
 #include <boost/python/module.hpp>
@@ -25,6 +23,8 @@
 #include <boost/python/copy_const_reference.hpp>
 #include <boost/shared_ptr.hpp>
 
+#include <cassert>
+
 #include <exceptions/exceptions.h>
 
 #include <dns/buffer.h>

+ 2 - 1
src/lib/xfr/Makefile.am

@@ -2,7 +2,8 @@ SUBDIRS = .
 
 AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
 AM_CPPFLAGS += -I$(top_srcdir)/src/lib/dns -I$(top_builddir)/src/lib/dns
-AM_CPPFLAGS += -I$(top_srcdir)/ext
+AM_CPPFLAGS += -I$(top_srcdir)/ext -Wno-strict-aliasing
+
 if GCC_WERROR_OK
 AM_CPPFLAGS += -Werror
 endif