diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2020-04-29 10:47:31 +0300 |
---|---|---|
committer | Amar Tumballi <amar@kadalu.io> | 2020-05-01 04:26:36 +0000 |
commit | 11ea746d0813e9599c2c8d0c36fcd7be5d25ac65 (patch) | |
tree | 9c14811a696b6a09b4720998cda5f496e3187e86 /geo-replication | |
parent | b0f41bc56d3867dc4cf2125d8ae87ddff2593229 (diff) |
cluster/ec: Fix varargs warning reported with clang-10
Found with clang-10 -Wvarargs:
xlators/cluster/ec/src/ec-combine.c:360:20: warning: passing an object that undergoes
default argument promotion to 'va_start' has undefined behavior [-Wvarargs]
va_start(args, global);
^
xlators/cluster/ec/src/ec-combine.c:348:34: note: parameter of type 'bool' is declared here
gf_boolean_t global, ...)
According to The C11 Standard, 7.16.1.4p4:
If the parameter parmN is declared with the register storage class, with a function
or array type, or with a type that is not compatible with the type that results after
application of the default argument promotions, the behavior is undefined.
Fixes: #1207
Change-Id: I527527845b2d574000d736c278be87cf19504761
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Diffstat (limited to 'geo-replication')
0 files changed, 0 insertions, 0 deletions