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

Build issue on gcc-7 #1013

Closed
vankoven opened this issue May 8, 2018 · 0 comments
Closed

Build issue on gcc-7 #1013

vankoven opened this issue May 8, 2018 · 0 comments

Comments

@vankoven
Copy link
Contributor

vankoven commented May 8, 2018

Cant build Tempesta on gcc-7:

tempesta/tempesta_fw/http_limits.c: In function ‘frang_http_req_process’:
tempesta/tempesta_fw/http_limits.c:255:9: error: the omitted middle operand in ?: will always be ‘true’, suggest explicit middle operand [-Werror=parentheses]
       ? : tfw_vhost_global_frang_cfg()->member)  \
         ^
tempesta/tempesta_fw/http_limits.c:947:3: note: in expansion of macro ‘__FRANG_CFG_VAR’
   __FRANG_CFG_VAR(host_required, http_host_required);
   ^~~~~~~~~~~~~~~
tempesta/tempesta_fw/http_limits.c:255:9: error: the omitted middle operand in ?: will always be ‘true’, suggest explicit middle operand [-Werror=parentheses]
       ? : tfw_vhost_global_frang_cfg()->member)  \
         ^
tempesta/tempesta_fw/http_limits.c:958:3: note: in expansion of macro ‘__FRANG_CFG_VAR’
   __FRANG_CFG_VAR(ct_required, http_ct_required);
   ^~~~~~~~~~~~~~~

GCC 7 is not default on Debian 9, so low priority.

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

No branches or pull requests

3 participants