forked from Mirrors/openclonk
GetStackValue: Remove "default: /* unreachable */"
Without an explicit default case, the compiler can warn about unhandled enum values inside the switch.directional-lights
parent
7a135a060f
commit
f0b4ef46a5
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue