﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
1546	nginx/1.14.0 compilation with gcc 8.1.0 fails	Dariusz Bogdanski	Sergey Kandaurov <pluknet@…>	"nginx/1.14.0 compilation with gcc 8.1.0 fails - it works perfectly with gcc 7.3.0.



result:

src/http/ngx_http_script.c:698:18: error: cast between incompatible function types from ‘size_t (*)(ngx_http_script_engine_t *)’ {aka ‘unsigned int (*)(struct <anonymous> *)’} to ‘
void (*)(ngx_http_script_engine_t *)’ {aka ‘void (*)(struct <anonymous> *)’} [-Werror=cast-function-type]
     code->code = (ngx_http_script_code_pt) ngx_http_script_copy_len_code;
                  ^
src/http/ngx_http_script.c: In function ‘ngx_http_script_add_var_code’:
src/http/ngx_http_script.c:787:18: error: cast between incompatible function types from ‘size_t (*)(ngx_http_script_engine_t *)’ {aka ‘unsigned int (*)(struct <anonymous> *)’} to ‘
void (*)(ngx_http_script_engine_t *)’ {aka ‘void (*)(struct <anonymous> *)’} [-Werror=cast-function-type]
     code->code = (ngx_http_script_code_pt) ngx_http_script_copy_var_len_code;
                  ^
src/http/ngx_http_script.c: In function ‘ngx_http_script_add_capture_code’:
src/http/ngx_http_script.c:1181:18: error: cast between incompatible function types from ‘size_t (*)(ngx_http_script_engine_t *)’ {aka ‘unsigned int (*)(struct <anonymous> *)’} to
‘void (*)(ngx_http_script_engine_t *)’ {aka ‘void (*)(struct <anonymous> *)’} [-Werror=cast-function-type]
     code->code = (ngx_http_script_code_pt)
                  ^
src/http/ngx_http_script.c: In function ‘ngx_http_script_add_full_name_code’:
src/http/ngx_http_script.c:1296:18: error: cast between incompatible function types from ‘size_t (*)(ngx_http_script_engine_t *)’ {aka ‘unsigned int (*)(struct <anonymous> *)’} to
‘void (*)(ngx_http_script_engine_t *)’ {aka ‘void (*)(struct <anonymous> *)’} [-Werror=cast-function-type]
     code->code = (ngx_http_script_code_pt) ngx_http_script_full_name_len_code;
                  ^
cc1: all warnings being treated as errors
objs/Makefile:945: recipe for target 'objs/src/http/ngx_http_script.o' failed
make[1]: *** [objs/src/http/ngx_http_script.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/pi/Sources/nginx-1.14.0'
Makefile:8: recipe for target 'build' failed
make: *** [build] Error 2"	defect	closed	minor		other	1.13.x	fixed			Linux MHRPi01UK 4.14.39-v7+ #1112 SMP Sat May 5 12:01:33 BST 2018 armv7l GNU/Linux	N/A
