Sign in to follow this  

After unreachable code wrong error msg

Recommended Posts


this code leads to a wrong error msg.

void dum()

int dummy()
return 0;
//return 1;
output: (35, 2) : INFO : Compiling int CPlayer::dummy() (38, 3) : WARN : Unreachable code (36, 2) : ERR : Not all paths return a value

If you uncomment the last line it works. it works also with an int a; instead of a func call

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this