From: wolf Date: Mon, 7 Jan 2002 09:49:15 +0000 (+0000) Subject: Suppress some warnings. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ba2006d460d4218831f5f494c6c4330e32792ca;p=dealii-svn.git Suppress some warnings. git-svn-id: https://svn.dealii.org/trunk@5352 0785d39b-7218-0410-832d-ea1e28bc413d --- 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 ); }