You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./lua-nginx-module/src/ngx_http_lua_script.c: In function ‘ngx_http_lua_script_add_copy_code’:
./lua-nginx-module/src/ngx_http_lua_script.c:332:18: error: cast between incompatible function types from ‘size_t (*)(ngx_http_lua_script_engine_t *)’ {aka ‘long unsigned int (*)(struct <anonymous> *)’} to ‘void (*)(ngx_http_lua_script_engine_t *)’ {aka ‘void (*)(struct <anonymous> *)’} [-Werror=cast-function-type]
code->code = (ngx_http_lua_script_code_pt)
^
./lua-nginx-module/src/ngx_http_lua_script.c: In function ‘ngx_http_lua_script_add_capture_code’:
./lua-nginx-module/src/ngx_http_lua_script.c:402:18: error: cast between incompatible function types from ‘size_t (*)(ngx_http_lua_script_engine_t *)’ {aka ‘long unsigned int (*)(struct <anonymous> *)’} to ‘void (*)(ngx_http_lua_script_engine_t *)’ {aka ‘void (*)(struct <anonymous> *)’} [-Werror=cast-function-type]
code->code = (ngx_http_lua_script_code_pt)
The text was updated successfully, but these errors were encountered:
akornatskyy
changed the title
GCC 8.1 compilation error: cast between incompatible function types
GCC 8.1 and 8.2 compilation error: cast between incompatible function types
Aug 3, 2018
nginx 1.15.1
lua-nginx-module 1.10.13
luajit 2.1
gcc version 8.1.0 (Debian 8.1.0-12)
gcc version 8.2.0 (Debian 8.2.0-1)
debian buster 4.17.8-1 (2018-07-20) x86_64
The text was updated successfully, but these errors were encountered: