[Issue 1975] New: void func return value not checked

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 5 13:54:55 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=1975

           Summary: void func return value not checked
           Product: D
           Version: 2.012
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: someanon at yahoo.com


should raise a warning/ or error:

$ cat voidreturn.d
void f() {
  return 1;
}

$ dmd -c -w voidreturn.d


-- 



More information about the Digitalmars-d-bugs mailing list