[Bug translator/12414] New: Missing return value is not reported

jan.kratochvil at redhat dot com sourceware-bugzilla@sourceware.org
Wed Jan 19 16:28:00 GMT 2011


http://sourceware.org/bugzilla/show_bug.cgi?id=12414

           Summary: Missing return value is not reported
           Product: systemtap
           Version: unspecified
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: translator
        AssignedTo: systemtap@sources.redhat.com
        ReportedBy: jan.kratochvil@redhat.com


Despite all the sanity in the stap language a forgotten return statement is not
reported:

global v
function f ()
{
  v++
}
probe begin
{
  printf ("done: %d\n", f ())
}

->

done: 0

and no warning is given.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Systemtap mailing list