February 10, 2006 excess warning? | ||||
|---|---|---|---|---|
| ||||
-----a.d
int main(){
auto Object o=new Object;
return 0;
}
-----
dmd -w a.d
warning - a.d(1): function a.main no return at end of function
| ||||
February 16, 2006 Re: excess warning? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to kurimura | kurimura wrote: > -----a.d > int main(){ > auto Object o=new Object; > return 0; > } > ----- > dmd -w a.d > warning - a.d(1): function a.main no return at end of function > > Confirmed with dmd 0.147 on linux. The problem is in the handling of the auto statement. Compiles fine without warnings. -- Jari-Matti | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply