From: tkummermehr Date: Thu, 13 Jul 2017 21:09:33 +0000 (+0200) Subject: Removing last two warnings, when set to pedantic only X-Git-Tag: 4.99.3~55^2 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;ds=inline;h=60388e7a0cdd6a1fa8190c6f50242c6c566155aa;p=apps%2Fagl-service-unicens.git Removing last two warnings, when set to pedantic only --- diff --git a/ucs2-afb/ucs_apihat.c b/ucs2-afb/ucs_apihat.c index 9dfd050..fd5d88f 100644 --- a/ucs2-afb/ucs_apihat.c +++ b/ucs2-afb/ucs_apihat.c @@ -61,7 +61,7 @@ static const struct afb_binding binding_description = { int afbBindingV1ServiceInit(struct afb_service service) { afbSrv = service; return (0); -}; +} /* * activation function for registering the binding called by afb-daemon diff --git a/ucs2-afb/ucs_binding.c b/ucs2-afb/ucs_binding.c index c1a0a06..814a874 100644 --- a/ucs2-afb/ucs_binding.c +++ b/ucs2-afb/ucs_binding.c @@ -67,7 +67,7 @@ static ucsContextT *ucsContextS; PUBLIC void UcsXml_CB_OnError(const char format[], uint16_t vargsCnt, ...) { //DEBUG (afbIface, format, args); va_list args; - va_start (args, format); + va_start (args, vargsCnt); vfprintf (stderr, format, args); va_end(args); }