From cd4957eb5530ea8f1c4478a010299dc65e9861dd Mon Sep 17 00:00:00 2001 From: Markus Ongyerth Date: Fri, 16 Dec 2016 13:50:12 +0100 Subject: [PATCH] wscutil: Change type for va_args for clang clang complains about enum as var_arg type because of the argument standard conversion. In a small test I did neither clang nor gcc can properly warn about out of range values, so it's purely for documentation either way. --- src/wscutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wscutil.c b/src/wscutil.c index 75f40542..3f2133bf 100644 --- a/src/wscutil.c +++ b/src/wscutil.c @@ -656,7 +656,7 @@ static int wsc_parse_attrs(const unsigned char *pdu, unsigned int len, struct wsc_wfa_ext_iter *ext_iter, enum wsc_attr authenticator_type, uint8_t *authenticator, - enum wsc_attr type, ...) + int type, ...) { struct wsc_attr_iter iter; struct l_queue *entries;