1
0
Fork 0

Silence a number of switch warnings

Avoid "default" case when only 1-2 enumarations are missing.
This commit is contained in:
Patryk Obara 2019-11-04 05:15:24 +01:00 committed by Patryk Obara
parent 5b99e786f0
commit ce1deb1516
2 changed files with 5 additions and 0 deletions

View file

@ -1954,6 +1954,9 @@ static void dyn_loop(LoopTypes type) {
gen_needflags();
branch1=gen_create_branch(BR_Z);
break;
case LOOP_NONE:
case LOOP_JCXZ:
break;
}
gen_protectflags();
switch (type) {

View file

@ -104,6 +104,8 @@ static void dyn_string(STRING_OP op) {
gen_call_function((void*)&IO_WriteW,"%Dw%Dw",DREG(EDX),tmp_reg);break;
case STR_OUTSD:
gen_call_function((void*)&IO_WriteD,"%Dw%Dd",DREG(EDX),tmp_reg);break;
default:
break;
}
}
if (usedi) {