1
0
mirror of synced 2026-02-09 01:50:59 +00:00

Reorder cases to avoid fall-through warning

log_assert(false) never returns and thus can't fall through, but gcc
doesn't seem to think that far. Making it the last case avoids the
problem entirely.
This commit is contained in:
Xiretza
2020-05-07 11:44:38 +02:00
parent 695150b037
commit d86fc791f9

View File

@@ -1943,13 +1943,13 @@ struct CxxrtlWorker {
case RTLIL::STa:
break;
case RTLIL::STg:
log_cmd_error("Global clock is not supported.\n");
// Handling of init-type sync rules is delegated to the `proc_init` pass, so we can use the wire
// attribute regardless of input.
case RTLIL::STi:
log_assert(false);
case RTLIL::STg:
log_cmd_error("Global clock is not supported.\n");
}
}