Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
1c1d2c88
Commit
1c1d2c88
authored
Feb 21, 2013
by
JINMEI Tatuya
Browse files
[2705] avoid false positive in g++ bug detection due to unused priv member.
parent
54e52000
Changes
1
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
1c1d2c88
...
@@ -161,8 +161,10 @@ if test $with_werror = 1; then
...
@@ -161,8 +161,10 @@ if test $with_werror = 1; then
CXXFLAGS_SAVED="$CXXFLAGS"
CXXFLAGS_SAVED="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS $B10_CXXFLAGS -Werror"
CXXFLAGS="$CXXFLAGS $B10_CXXFLAGS -Werror"
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_;};} ],,
[AC_MSG_RESULT(no)
[AC_MSG_RESULT(no)
werror_ok=1
werror_ok=1
B10_CXXFLAGS="$B10_CXXFLAGS -Werror"],
B10_CXXFLAGS="$B10_CXXFLAGS -Werror"],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment