diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2009-04-14 13:13:43 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2009-04-14 13:13:43 -0400 |
commit | 7175b49227fb1f71f3bdd6060ef9f6499e42f035 (patch) | |
tree | cf24da8b92ef176765012795d2cbbef3ea8c60da /elaborate.cxx | |
parent | b9c2e81cc7a62336ec1daf374cb3411add772ab4 (diff) | |
download | systemtap-steved-7175b49227fb1f71f3bdd6060ef9f6499e42f035.tar.gz systemtap-steved-7175b49227fb1f71f3bdd6060ef9f6499e42f035.tar.xz systemtap-steved-7175b49227fb1f71f3bdd6060ef9f6499e42f035.zip |
PR10070: don't warn about side-effect-free probes in -t (timing) mode
* elaborate.cxx (semantic_pass_opt4): Filter warning on s.timing.
Diffstat (limited to 'elaborate.cxx')
-rw-r--r-- | elaborate.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/elaborate.cxx b/elaborate.cxx index 323261c7..b760173f 100644 --- a/elaborate.cxx +++ b/elaborate.cxx @@ -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(); |