mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 22:01:31 +02:00
BUILD: sample: avoid build warning in sample.c
Recent commit 9631a28 ("MEDIUM: sample: Extend functionality for field/word converters") introduced this minor build warning that this patch addresses : src/sample.c: In function 'sample_conv_word': src/sample.c:2108:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] src/sample.c:2137:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] No backport is needed.
This commit is contained in:
parent
ebaba75429
commit
9eb2a4addf
@ -2105,11 +2105,12 @@ static int sample_conv_word(const struct arg *arg_p, struct sample *smp, void *p
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (issep) {
|
else if (issep) {
|
||||||
if (word == arg_p[0].data.sint)
|
if (word == arg_p[0].data.sint) {
|
||||||
if (count == 1)
|
if (count == 1)
|
||||||
goto found;
|
goto found;
|
||||||
else if (count > 1)
|
else if (count > 1)
|
||||||
count--;
|
count--;
|
||||||
|
}
|
||||||
inword = 0;
|
inword = 0;
|
||||||
}
|
}
|
||||||
start--;
|
start--;
|
||||||
@ -2134,11 +2135,12 @@ static int sample_conv_word(const struct arg *arg_p, struct sample *smp, void *p
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (issep) {
|
else if (issep) {
|
||||||
if (word == arg_p[0].data.sint)
|
if (word == arg_p[0].data.sint) {
|
||||||
if (count == 1)
|
if (count == 1)
|
||||||
goto found;
|
goto found;
|
||||||
else if (count > 1)
|
else if (count > 1)
|
||||||
count--;
|
count--;
|
||||||
|
}
|
||||||
inword = 0;
|
inword = 0;
|
||||||
}
|
}
|
||||||
end++;
|
end++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user