kc-8.7.x master: ../common/ECChannel.cpp:362:1: error: jump to label 'exit' [-fpermissive]
-
Just tried to compile kc-8.7.x master on CentOS 7 x86_64 with gcc-c++ version 8.3.1 20190311 (Red Hat 8.3.1-3) (GCC) and get this error:
../common/ECChannel.cpp: In static member function 'static HRESULT KC::ECChannel::HrSetCtx(KC::ECConfig*)': ../common/ECChannel.cpp:362:1: error: jump to label 'exit' [-fpermissive] exit: ^~~~ ../common/ECChannel.cpp:173:9: note: from here goto exit; ^~~~ ../common/ECChannel.cpp:245:22: note: crosses initialization of 'long int ssl_opclear' long ssl_opset = 0, ssl_opclear = 0; ^~~~~~~~~~~ ../common/ECChannel.cpp:245:7: note: crosses initialization of 'long int ssl_opset' long ssl_opset = 0, ssl_opclear = 0; ^~~~~~~~~ make[2]: *** [Makefile:4310: common/ECChannel.lo] Error 1