Commit 1c1d2c88 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[2705] avoid false positive in g++ bug detection due to unused priv member.

parent 54e52000
...@@ -161,8 +161,10 @@ if test $with_werror = 1; then ...@@ -161,8 +161,10 @@ if test $with_werror = 1; then
AC_MSG_CHECKING(for in-TU anonymous namespace breakage) AC_MSG_CHECKING(for in-TU anonymous namespace breakage)
AC_TRY_COMPILE([namespace { class Foo {}; } # We use struct, not class, here, because some compilers complain about
namespace isc {class Bar {Foo foo_;};} ],, # "unused private members", causing a false positive.
AC_TRY_COMPILE([namespace { struct Foo {}; }
namespace isc {struct Bar {Foo foo_;};} ],,
werror_ok=1 werror_ok=1
B10_CXXFLAGS="$B10_CXXFLAGS -Werror"], B10_CXXFLAGS="$B10_CXXFLAGS -Werror"],
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment