From a9e8f7e0533811be2cd7c9a88d9058da8caa1d11 Mon Sep 17 00:00:00 2001 From: fche Date: Sat, 6 Oct 2007 02:42:29 +0000 Subject: PR1119: unused variable elision warnings 2007-10-05 Frank Ch. Eigler PR 1119 * elaborate.cxx (semantic_pass_opt[12]): Warn on elided variables/functions in user script. * session.h (suppress_warnings): New field. Change "timing" to plain old bool. * main.cxx (main): Configure warnings on by default. * stap.1.in: Document this. PR 1119. * systemtap.base/warnings.*: New test. * futexes.stp, sig_by_proc.stp, small_demos/rwtiming.stp: Fix elision warnings. --- NEWS | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index ff6f1370..b093d78f 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,9 @@ * What's new in version 0.6 / since version 0.5.15? +- Systemtap will warn you if your script contains unused variables or + functions. This is helpful in case of misspelled variables. If it + doth protest too much, turn it off with "stap -w ...". + - You can add error-handling probes to a script, which are run if a script was stopped due to errors. In such a case, "end" probes are not run, but "error" ones are. -- cgit