From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28711 invoked by alias); 15 Sep 2014 19:21:50 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 28683 invoked by uid 48); 15 Sep 2014 19:21:45 -0000 From: "dcb314 at hotmail dot com" To: systemtap@sourceware.org Subject: [Bug runtime/17395] New: util.cxx:1120: bad switch statement ? Date: Mon, 15 Sep 2014 19:21:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: runtime X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q3/txt/msg00266.txt.bz2 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.