This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug runtime/17395] New: util.cxx:1120: bad switch statement ?


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]