]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Suppress some warnings.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 7 Jan 2002 09:49:15 +0000 (09:49 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 7 Jan 2002 09:49:15 +0000 (09:49 +0000)
git-svn-id: https://svn.dealii.org/trunk@5352 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/contrib/kdoc/src/kdocAstUtil.pm

index 9636bf23d4c4a1a6feed9cf7b5996d88f0dd8488..1f602eba7dfd07fde0b8e0ecfe1af7506dd97f61 100644 (file)
@@ -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 );
                        }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.