mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-13 15:00:59 +01:00
BUILD/MINOR: 51d: fix warning when building with 51Degrees release version 3.2.12.12
The warning appears when building with 51Degrees release that uses a new
Hash Trie algorithm (release version 3.2.12.12):
src/51d.c: In function init_51degrees:
src/51d.c:566:2: warning: enumeration value DATA_SET_INIT_STATUS_TOO_MANY_OPEN_FILES not handled in switch [-Wswitch]
switch (_51d_dataset_status) {
^
This patch can be backported in 1.7.
This commit is contained in:
parent
95fad5ba4b
commit
483b93cc9a
@ -605,6 +605,9 @@ static int init_51degrees(void)
|
|||||||
case DATA_SET_INIT_STATUS_NOT_SET:
|
case DATA_SET_INIT_STATUS_NOT_SET:
|
||||||
chunk_printf(temp, "Data set not initialised.");
|
chunk_printf(temp, "Data set not initialised.");
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
chunk_printf(temp, "Other error.");
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if (_51d_dataset_status != DATA_SET_INIT_STATUS_SUCCESS) {
|
if (_51d_dataset_status != DATA_SET_INIT_STATUS_SUCCESS) {
|
||||||
if (temp->len)
|
if (temp->len)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user