logoalt Hacker News

kouosiyesterday at 5:26 PM1 replyview on HN

> compile with -Wreturn-type if you want to avoid such things...

Isn't -Wreturn-type enabled by default in both gcc and clang atleast for c++?


Replies

mathisfun123yesterday at 5:49 PM

probably - i guess then i meant -Werror=return-type