Open qianzhang613 opened 4 years ago
@qianzhang613 you can quickly fix this by removing the -Werror=return-type
option in CMakeLists.txt. Then retype cmake and recompile.
https://github.com/Oneflow-Inc/oneflow/blob/master/CMakeLists.txt#L123
@qianzhang613 you can quickly fix this by removing the
-Werror=return-type
option in CMakeLists.txt. Then retype cmake and recompile.https://github.com/Oneflow-Inc/oneflow/blob/master/CMakeLists.txt#L123
ok, that works thanks.
it is better to just add error return at the end.
the line 47 of /oneflow/oneflow/xrt/xla/ops/scalar_binary_op.cpp :
need add
return
statement.