diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2010-02-25 21:14:52 -0500 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2010-02-25 21:14:52 -0500 |
commit | 57a56e00067b4546bb0da15fb00653ee0341f5af (patch) | |
tree | 980fb3e65e34b96e298261363139db00820e4c14 /testsuite | |
parent | 780f11fff7829a952ded0308f5ee47c65bbfc1c0 (diff) | |
download | systemtap-steved-57a56e00067b4546bb0da15fb00653ee0341f5af.tar.gz systemtap-steved-57a56e00067b4546bb0da15fb00653ee0341f5af.tar.xz systemtap-steved-57a56e00067b4546bb0da15fb00653ee0341f5af.zip |
PR11075: -W option to turn warnings into errors
* session.h
* NEWS: Discuss it.
* main.cxx: Parse it.
* session.h (num_errors): Provide it.
* semok/fortyeight.stp, semok/thirtyseven.stp: Test it.
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/semko/fortyeight.stp | 6 | ||||
-rwxr-xr-x | testsuite/semok/thirtyseven.stp | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/semko/fortyeight.stp b/testsuite/semko/fortyeight.stp new file mode 100755 index 00000000..34bcad01 --- /dev/null +++ b/testsuite/semko/fortyeight.stp @@ -0,0 +1,6 @@ +#! stap -Wp2 + +# PR 11075 + +global foo # evokes warning +probe begin { exit() } diff --git a/testsuite/semok/thirtyseven.stp b/testsuite/semok/thirtyseven.stp new file mode 100755 index 00000000..fb378359 --- /dev/null +++ b/testsuite/semok/thirtyseven.stp @@ -0,0 +1,6 @@ +#! stap -wWp2 + +# PR 11075 + +global foo # evokes warning +probe begin { exit() } |