Skip to content

Commit

Permalink
Merge pull request #1035 from tempesta-tech/ao-1013
Browse files Browse the repository at this point in the history
 Fix #1013: Avoid gcc-7 warning in conditional ternary operator (#1013).
  • Loading branch information
aleksostapenko authored Jul 5, 2018
2 parents 333ec1c + 70f47e0 commit ca3d197
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tempesta_fw/http_limits.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,9 @@ int prio0, prio1, prio3;
*/
#define __FRANG_CFG_VAR(name, member) \
const typeof(((FrangCfg *)0)->member) name = \
(req->location \
? (req->location->frang_cfg->member \
? : tfw_vhost_global_frang_cfg()->member) \
: tfw_vhost_global_frang_cfg()->member)
(req->location && req->location->frang_cfg->member \
? req->location->frang_cfg->member \
: tfw_vhost_global_frang_cfg()->member)

#define frang_msg(check, addr, fmt, ...) \
do { \
Expand Down

0 comments on commit ca3d197

Please sign in to comment.