Recently, I came across a double return (one of them was added by mistake) in our project and wondered why the compiler does not display a warning for this ?!
Ok, I added -Wunreachable-code to the other warning flags, but still no luck.
Get a warning - with code to execute after return :

I did not receive a warning, but the second return will never be executed. 
Even if I add something like this, still no warnings

Is there an extra warning flag for this, or is the compiler not smart enough?
source share