mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-10 11:11:37 +00:00
BUILD: compression: remove a warning when no compression lib is used
This warning appears when building without any compression library : src/compression.c:143:19: warning: unused function 'init_comp_ctx' [-Wunused-function] static inline int init_comp_ctx(struct comp_ctx **comp_ctx) ^ src/compression.c:176:19: warning: unused function 'deinit_comp_ctx' [-Wunused-function] static inline int deinit_comp_ctx(struct comp_ctx **comp_ctx) No backport is needed.
This commit is contained in:
parent
9d87ca0685
commit
e1cc4b5231
@ -56,7 +56,6 @@ long zlib_used_memory = 0;
|
||||
#endif
|
||||
|
||||
unsigned int compress_min_idle = 0;
|
||||
static struct pool_head *pool_comp_ctx = NULL;
|
||||
|
||||
static int identity_init(struct comp_ctx **comp_ctx, int level);
|
||||
static int identity_add_data(struct comp_ctx *comp_ctx, const char *in_data, int in_len, struct buffer *out);
|
||||
@ -137,6 +136,8 @@ int comp_append_algo(struct comp *comp, const char *algo)
|
||||
return -1;
|
||||
}
|
||||
|
||||
#if defined(USE_ZLIB) || defined(USE_SLZ)
|
||||
static struct pool_head *pool_comp_ctx = NULL;
|
||||
/*
|
||||
* Alloc the comp_ctx
|
||||
*/
|
||||
@ -186,6 +187,7 @@ static inline int deinit_comp_ctx(struct comp_ctx **comp_ctx)
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/****************************
|
||||
|
Loading…
Reference in New Issue
Block a user