bug-mes
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 01/16] lib/tests: Pass int to va_arg instead of char.


From: Jan Nieuwenhuizen
Subject: Re: [PATCH 01/16] lib/tests: Pass int to va_arg instead of char.
Date: Sun, 02 May 2021 17:10:20 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

W. J. van der Laan writes:

> * lib/tests/scaffold/70-stdarg.c (stdarg1, stdarg2, stdarg3): Pass int
> to va_arg instead of char to avoid gcc trap "warning: 'char’ is promoted
> to ‘int’ when passed through ‘...’ [enabled by default] (so you should
> pass ‘int’ not ‘char’ to ‘va_arg’) if this code is reached, the program
> will abort".

Thanks!  Applied to master.

Greetings,
Janneke

-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]