Explorar el Código

empty functions must return 0

master
Martin Dørum hace 3 años
padre
commit
b11a9e66b4
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5
    0
      lib/parse/parse.c

+ 5
- 0
lib/parse/parse.c Ver fichero

@@ -41,6 +41,11 @@ static int parse_function_impl(
first = 0;
}

// Empty function bodies must still return something; just return 0 (none)
if (first) {
l2_gen_push(gen, 0);
}

l2_gen_ret(gen);
return 0;
}

Cargando…
Cancelar
Guardar