]> sourceware.org Git - systemtap.git/commitdiff
PR10070: don't warn about side-effect-free probes in -t (timing) mode
authorFrank Ch. Eigler <fche@elastic.org>
Tue, 14 Apr 2009 17:13:43 +0000 (13:13 -0400)
committerFrank Ch. Eigler <fche@elastic.org>
Tue, 14 Apr 2009 17:13:43 +0000 (13:13 -0400)
* elaborate.cxx (semantic_pass_opt4): Filter warning on s.timing.

elaborate.cxx

index 323261c70b31a1b3bf46f3fd9d17d3b59592a3b7..b760173f3e89ff25e48d09e137063cab1616f4d7 100644 (file)
@@ -2433,7 +2433,8 @@ void semantic_pass_opt4 (systemtap_session& s, bool& relaxed_p)
       p->body = duv.require(p->body, true);
       if (p->body == 0)
         {
-          if (! s.suppress_warnings)
+          if (! s.suppress_warnings
+              && ! s.timing) // PR10070
             s.print_warning ("side-effect-free probe '" + p->name + "'", p->tok);
 
           p->body = new null_statement();
This page took 0.036702 seconds and 5 git commands to generate.