diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2009-04-03 11:35:35 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2009-04-03 11:35:35 -0400 |
commit | 8c1b9e271c944f64fc11fa9679c653b84ceaa77c (patch) | |
tree | 46058db98b171719ed9f3171d42d510ca47894ce /tapsets.cxx | |
parent | 08dc41a50c508544bc18d384a65a137056a98195 (diff) | |
download | systemtap-steved-8c1b9e271c944f64fc11fa9679c653b84ceaa77c.tar.gz systemtap-steved-8c1b9e271c944f64fc11fa9679c653b84ceaa77c.tar.xz systemtap-steved-8c1b9e271c944f64fc11fa9679c653b84ceaa77c.zip |
make skip-badvars warning message sensitive to -w suppression
Diffstat (limited to 'tapsets.cxx')
-rw-r--r-- | tapsets.cxx | 5 |
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; |