comparison src/http/modules/ngx_http_grpc_module.c @ 7406:ed5b3c4c1284 stable-1.14

Silenced -Wcast-function-type warnings (closes #1546). Cast to intermediate "void *" to lose compiler knowledge about the original type and pass the warning. This is not a real fix but rather a workaround. Found by gcc8.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 07 May 2018 09:54:37 +0000
parents 6afba58cd5a3
children 9ac0e8b9aced
comparison
equal deleted inserted replaced
7405:d1525e45255a 7406:ed5b3c4c1284
4402 sizeof(ngx_http_script_copy_code_t)); 4402 sizeof(ngx_http_script_copy_code_t));
4403 if (copy == NULL) { 4403 if (copy == NULL) {
4404 return NGX_ERROR; 4404 return NGX_ERROR;
4405 } 4405 }
4406 4406
4407 copy->code = (ngx_http_script_code_pt) ngx_http_script_copy_len_code; 4407 copy->code = (ngx_http_script_code_pt) (void *)
4408 ngx_http_script_copy_len_code;
4408 copy->len = src[i].key.len; 4409 copy->len = src[i].key.len;
4409 4410
4410 size = (sizeof(ngx_http_script_copy_code_t) 4411 size = (sizeof(ngx_http_script_copy_code_t)
4411 + src[i].key.len + sizeof(uintptr_t) - 1) 4412 + src[i].key.len + sizeof(uintptr_t) - 1)
4412 & ~(sizeof(uintptr_t) - 1); 4413 & ~(sizeof(uintptr_t) - 1);