Unreachable, or dead, code is that code that will never be executed, and for this reason will not be emitted by the compiler.
These parts are normally generated when a conditional execution resolves to a constant comparison that allows the compiler to evaluate that the code will never execute during compilation. I.e.
const a=2; //This is a constant value
...
if (a ==10) //This condition will never be true. The code will be removed
{
printf("Dead code. Will never be executed!\");
}
Another example is when there is code after a return statement:
void foo(void)
{
printf("foo()\n");
return;
printf("Dead code. Will never be executed!\");
}
The warn is very useful if you put the code there by mistake.