天天看点

编译OpenJDK8:error: control reaches end of non-void function [-Werror=return-type]

详细错误:

/home/tsrj/tsjdk8-project/tsjdk8/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp:227:26: error: control reaches end of non-void function [-Werror=return-type]
   SignalHandlerMark shm(t);      

解决办法:

make/

linux

/makefiles/gcc.make:204

注释掉WARNINGS_ARE_ERRORS = -Werror

继续阅读