GetStackValue: Remove "default: /* unreachable */"

Without an explicit default case, the compiler can warn about unhandled
enum values inside the switch.
directional-lights
Nicolas Hake 2016-04-29 12:14:53 +02:00
parent 7a135a060f
commit f0b4ef46a5
1 changed files with 1 additions and 3 deletions

View File

@ -107,10 +107,8 @@ static int GetStackValue(C4AulBCCType eType, intptr_t X)
case AB_ARRAY_SLICE_SET:
return -3;
default:
assert(false);
}
assert(0 && "GetStackValue: unexpected bytecode not handled");
return 0;
}