I get the above error. Compiler doesnt like the highlighted lines floor-0;
below. My question is why would this be unreachable ?

Code:
#include <stdio.h>

int main(int argc, char *argv[])
{
 unsigned int upBtn=0x02;  
 unsigned int state=2,floor;

	
    if (upBtn > 0){

		if(upBtn & 0x01){
				floor=0;
		}
	
		else if(upBtn & 0x02){
				floor=1;
		}
	
		else if(upBtn & 0x04){
				floor=2;
		}
	
		else if(upBtn & 0x08){
				floor=3;
		}
	}


    return 0;
}