Skip to content

Commit

Permalink
conffile: try to silence Clang on bison generated code
Browse files Browse the repository at this point in the history
yynerrs is never used, flag it to silence the compiler

Signed-off-by: Fabian Groffen <[email protected]>
  • Loading branch information
grobian committed Apr 27, 2024
1 parent 583aa4e commit cb479b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conffile.y
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ cluster: crCLUSTER crSTRING[name] cluster_type[type] cluster_hosts[servers]
int srvcnt;
int replcnt;

/* just to silence clang */
(void)yynerrs;

/* count number of servers for ch_new */
for (srvcnt = 0, w = $servers; w != NULL; w = w->next, srvcnt++)
;
Expand Down

0 comments on commit cb479b5

Please sign in to comment.