This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/17395] New: util.cxx:1120: bad switch statement ?
- From: "dcb314 at hotmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Mon, 15 Sep 2014 19:21:43 +0000
- Subject: [Bug runtime/17395] New: util.cxx:1120: bad switch statement ?
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=17395
Bug ID: 17395
Summary: util.cxx:1120: bad switch statement ?
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: runtime
Assignee: systemtap at sourceware dot org
Reporter: dcb314 at hotmail dot com
[util.cxx:1120] -> [util.cxx:1122]: (warning) Variable 'err_msg' is reassigned
a value before the old one has been used. 'break;' missing?
switch (errno) // ignore EINVAL: invalid signal
{
case ESRCH:
err_msg = "pid given does not correspond to a running process";
case EPERM:
err_msg = "invalid permissions for signalling given pid";
default:
err_msg = "invalid pid";
}
Basic coding error. Suggest add break statements.
--
You are receiving this mail because:
You are the assignee for the bug.