summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2009-04-03 11:35:35 -0400
committerFrank Ch. Eigler <fche@elastic.org>2009-04-03 11:35:35 -0400
commit8c1b9e271c944f64fc11fa9679c653b84ceaa77c (patch)
tree46058db98b171719ed9f3171d42d510ca47894ce
parent08dc41a50c508544bc18d384a65a137056a98195 (diff)
downloadsystemtap-steved-8c1b9e271c944f64fc11fa9679c653b84ceaa77c.tar.gz
systemtap-steved-8c1b9e271c944f64fc11fa9679c653b84ceaa77c.tar.xz
systemtap-steved-8c1b9e271c944f64fc11fa9679c653b84ceaa77c.zip
make skip-badvars warning message sensitive to -w suppression
-rw-r--r--tapsets.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index 1b55684b..c81285e2 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -4906,8 +4906,9 @@ dwarf_var_expanding_visitor::visit_target_symbol (target_symbol *e)
literal_number* ln_zero = new literal_number (0);
ln_zero->tok = e->tok;
provide (ln_zero);
- q.sess.print_warning ("Bad variable being substituted with literal 0",
- e->tok);
+ if (!q.sess.suppress_warnings)
+ q.sess.print_warning ("Bad $context variable being substituted with literal 0",
+ e->tok);
}
delete fdecl;
delete ec;