mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-12-11 04:31:01 +01:00
BUILD: log: Fix compilation without SSL support
When compiled without SSL support, a variable is reported as not used by
GCC.
src/log.c: In function ‘sess_build_logline’:
src/log.c:2056:36: error: unused variable ‘conn’ [-Werror=unused-variable]
2056 | struct connection *conn;
| ^~~~
This does not need to be backported.
This commit is contained in:
parent
16f16afb31
commit
52b28d2f30
@ -2052,7 +2052,9 @@ int sess_build_logline(struct session *sess, struct stream *s, char *dst, size_t
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
list_for_each_entry(tmp, list_format, list) {
|
list_for_each_entry(tmp, list_format, list) {
|
||||||
|
#ifdef USE_OPENSSL
|
||||||
struct connection *conn;
|
struct connection *conn;
|
||||||
|
#endif
|
||||||
const struct sockaddr_storage *addr;
|
const struct sockaddr_storage *addr;
|
||||||
const char *src = NULL;
|
const char *src = NULL;
|
||||||
struct sample *key;
|
struct sample *key;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user