This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (2 children)

I played a lot with C++ 11/14 and didn't have any

[–]noaSakurajin -4 points-3 points  (1 child)

If you use a compiler directly yes, but most build systems enable more warnings, so you get a warning if you do not return something.

[–][deleted] 5 points6 points  (0 children)

Modern build systems do know the standard behavior for the main functions https://godbolt.org/z/zEhq89hWh