From: hartmann Date: Tue, 27 Apr 2004 08:47:55 +0000 (+0000) Subject: Fix (hopefully last) bug in DEAL_II_CHECK_ANON_NAMESPACE_BUG3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc11963add32dbe546bb79778f1f55843967fb26;p=dealii-svn.git Fix (hopefully last) bug in DEAL_II_CHECK_ANON_NAMESPACE_BUG3 git-svn-id: https://svn.dealii.org/trunk@9105 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index c9bf8a694c..54c686da12 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -2798,7 +2798,7 @@ AC_DEFUN(DEAL_II_CHECK_ANON_NAMESPACE_BUG3, dnl ], [ AC_MSG_RESULT(yes) - AC_DEFINE_UNQUOTED(DEAL_II_ANON_NAMESPACE_BOGUS_WARNING, 1 + AC_DEFINE_UNQUOTED(DEAL_II_ANON_NAMESPACE_BOGUS_WARNING, 1, [Flag indicating whether there is a bug in the compiler that leads to bogus warnings for inline class members in anonymous namespaces]) diff --git a/deal.II/base/include/base/config.h.in b/deal.II/base/include/base/config.h.in index cfcbb62c4d..c7105dad31 100644 --- a/deal.II/base/include/base/config.h.in +++ b/deal.II/base/include/base/config.h.in @@ -35,6 +35,10 @@ */ #undef DEAL_II_ABORT_NOTHROW_EXCEPTION +/* Flag indicating whether there is a bug in the compiler that leads to bogus + warnings for inline class members in anonymous namespaces */ +#undef DEAL_II_ANON_NAMESPACE_BOGUS_WARNING + /* Defined if the compiler needs to see the static keyword even for functions in anonymous namespaces, to avoid duplicate symbol errors when linking. For the details, look at aclocal.m4 in the top-level directory. */ diff --git a/deal.II/configure b/deal.II/configure index e93856738b..f4d8fef1be 100755 --- a/deal.II/configure +++ b/deal.II/configure @@ -5269,11 +5269,9 @@ sed 's/^/| /' conftest.$ac_ext >&5 echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 - cat >>confdefs.h <<_ACEOF + +cat >>confdefs.h <<_ACEOF #define DEAL_II_ANON_NAMESPACE_BOGUS_WARNING 1 - Flag indicating whether there is a bug in the - compiler that leads to bogus warnings for - inline class members in anonymous namespaces _ACEOF