Explorar el Código

Fix 'control may reach end of non-void function' warning

pull/23/head
mtardy hace 4 años
padre
commit
cc069fcc92
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      parse.leg

+ 2
- 2
parse.leg Ver fichero

@ -1003,7 +1003,7 @@ oop addOperation(oop ast, oop lhs, oop rhs)
}
}
runtimeError("addition between two incompatible types");
assert(0); // to prevent: control may reach end of non-void function
return NULL; // to prevent: control may reach end of non-void function
}
oop mulOperation(oop ast, oop lhs, oop rhs)
@ -1020,7 +1020,7 @@ oop mulOperation(oop ast, oop lhs, oop rhs)
}
}
runtimeError("multiplication between two incompatible types");
assert(0);
return NULL; // to prevent: control may reach end of non-void function
}
#undef TYPESIG

Cargando…
Cancelar
Guardar