so that it please both
compilers which warn for dead code after the switch
and
compilers which do not detect that all branches terminate.
bounds.upperBound = (int)ZSTD_f_zstd1_magicless;
ZSTD_STATIC_ASSERT(ZSTD_f_zstd1 < ZSTD_f_zstd1_magicless);
return bounds;
- default:
- bounds.error = ERROR(parameter_unsupported);
- return bounds;
+ default:;
}
- assert(0);
bounds.error = ERROR(parameter_unsupported);
return bounds;
}
CHECK_DBOUNDS(ZSTD_d_format, value);
dctx->format = (ZSTD_format_e)value;
return 0;
- default:
- return ERROR(parameter_unsupported);
+ default:;
}
- assert(0); /* should be unreachable */
return ERROR(parameter_unsupported);
}