https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91585

--- Comment #2 from lucien.gentis at waika9 dot com ---
(In reply to Marek Polacek from comment #1)
> You can use -Werror if you want errors.  Not a bug.

Effectively, if it is the expected behaviour, it's not a bug.

About -Werror, I think it turns all warnings into errors.
With this option, Compiler says : "test1.cc:4:1: error: no return statement in
function returning non-void [-Werror=return-type]
So, I use -Wall -Werror=return-type, in order only warnings about non void
function without return statement get turned into errors.

Thanks for your help.

Reply via email to