From 7ba2006d460d4218831f5f494c6c4330e32792ca Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 7 Jan 2002 09:49:15 +0000 Subject: [PATCH] Suppress some warnings. git-svn-id: https://svn.dealii.org/trunk@5352 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/contrib/kdoc/src/kdocAstUtil.pm | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/deal.II/contrib/kdoc/src/kdocAstUtil.pm b/deal.II/contrib/kdoc/src/kdocAstUtil.pm index 9636bf23d4..1f602eba7d 100644 --- a/deal.II/contrib/kdoc/src/kdocAstUtil.pm +++ b/deal.II/contrib/kdoc/src/kdocAstUtil.pm @@ -200,7 +200,11 @@ sub linkNamespaces $node->AddPropList( "ExtNames", $spnode ); } else { - warn "namespace not found: $space\n"; + # warn if namespace not found, but exclude + # namespace std since that is special and + # cannot be found anyway + warn "namespace not found: $space\n" + if !($space eq "std"); } } } @@ -360,10 +364,13 @@ ANITER: $in->{astNodeName} ); if( !defined $ref ) { - # ancestor undefined + # ancestor undefined. do not warn if + # ancestor comes from namespace std, since + # we will not usually know about that warn "warning: ", $node->{astNodeName}, " inherits unknown class '", - $in->{astNodeName},"'\n"; + $in->{astNodeName},"'\n" + if (! ($in->{astNodeName} =~ /^std::/)); $parent->AddPropList( 'InBy', $node ); } -- 2.39.5