summaryrefslogtreecommitdiffstats
path: root/dwflpp.cxx
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-07-30 00:06:59 +0200
committerMark Wielaard <mjw@redhat.com>2009-07-30 00:17:09 +0200
commit83ca3872dadc89c5a8155150bf76d5c09890dcc9 (patch)
tree5778940a299b310ac862cb4b6e1f7675c99b8b79 /dwflpp.cxx
parent8823ee6a3fcf47adbb7314c6fd560e6c952c4705 (diff)
downloadsystemtap-steved-83ca3872dadc89c5a8155150bf76d5c09890dcc9.tar.gz
systemtap-steved-83ca3872dadc89c5a8155150bf76d5c09890dcc9.tar.xz
systemtap-steved-83ca3872dadc89c5a8155150bf76d5c09890dcc9.zip
PR10459. Disable all warning messages on -w.
* stap.1.in: Document that -w disables all warning messages. * dwflpp.cxx (get_module_dwarf): Only output warning when session suppress_warnings is not set. * translate.cxx (dump_unwindsyms): Likewise. (emit_symbol_data_done): Likewise. * tapsets.cxx (query_module_symtab): Likewise. (read_from_elf_file): Take systemtap_session, check suppress_warnings before emitting warning. (read_from_text_file): Likewise. (get_symtab): Call read_from_elf_file and read_from_text_file with session.
Diffstat (limited to 'dwflpp.cxx')
-rw-r--r--dwflpp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwflpp.cxx b/dwflpp.cxx
index 01cfddaa..e6e7b471 100644
--- a/dwflpp.cxx
+++ b/dwflpp.cxx
@@ -124,7 +124,7 @@ dwflpp::get_module_dwarf(bool required, bool report)
if (required)
throw semantic_error (msg);
- else
+ else if (! sess.suppress_warnings)
cerr << "WARNING: " << msg << "\n";
}
}