Commit 8ee9627d authored by Matthias Braun's avatar Matthias Braun

Pull side effects out of assert()

parent b5248db3
......@@ -2098,7 +2098,9 @@ static void read_modes(read_env_t *env)
switch (kwkind) {
case kw_int_mode: {
const char *name = read_string(env);
assert(read_mode_arithmetic(env) == irma_twos_complement);
ir_mode_arithmetic arith = read_mode_arithmetic(env);
assert(arith == irma_twos_complement);
(void)arith;
int size = read_long(env);
int sign = read_long(env);
unsigned modulo_shift = read_long(env);
......@@ -2107,7 +2109,9 @@ static void read_modes(read_env_t *env)
}
case kw_reference_mode: {
const char *name = read_string(env);
assert(read_mode_arithmetic(env) == irma_twos_complement);
ir_mode_arithmetic arith = read_mode_arithmetic(env);
assert(arith == irma_twos_complement);
(void)arith;
int size = read_long(env);
unsigned modulo_shift = read_long(env);
ir_mode *mode = new_reference_mode(name, size, modulo_shift);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment