Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCC >= 8 - build failure #29

Open
dvershinin opened this issue Jan 17, 2020 · 1 comment
Open

GCC >= 8 - build failure #29

dvershinin opened this issue Jan 17, 2020 · 1 comment

Comments

@dvershinin
Copy link

replace-filter-nginx-module-0.0.1/src/ngx_http_replace_script.c: In function 'ngx_http_replace_script_add_var_code':
replace-filter-nginx-module-0.0.1/src/ngx_http_replace_script.c:612:18: error: cast between incompatible function types from 'size_t (*)(ngx_http_replace_script_engine_t *)' {aka 'long unsigned int (*)(struct <anonymous> *)'} to 'void (*)(ngx_http_replace_script_engine_t *)' {aka 'void (*)(struct <anonymous> *)'} [-Werror=cast-function-type]
     code->code = (ngx_http_replace_script_code_pt)
                  ^
cc1: all warnings being treated as errors
@agentzh
Copy link
Member

agentzh commented Jan 17, 2020

@dvershinin Thanks for the report! Mind to contribute a patch? It looks like an easy fix to just adjust the type declaration of void ....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants