On Mon, Sep 9, 2019 at 4:12 PM Bill Wendling <morbo@xxxxxxxxxx> wrote: > > Clang warns that passing an object that undergoes default argument > promotion to "va_start" is undefined behavior: > > lib/report.c:106:15: error: passing an object that undergoes default > argument promotion to 'va_start' has undefined behavior > [-Werror,-Wvarargs] > va_start(va, pass); > > Using an "unsigned" type removes the need for argument promotion. > > Signed-off-by: Bill Wendling <morbo@xxxxxxxxxx> Reviewed-by: Jim Mattson <jmattson@xxxxxxxxxx>