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
No known key found for this signature in database
GPG Key ID: E51A6C6A1EB378ED
1 changed files with 3 additions and 3 deletions

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");
}
}