On Mon, Mar 18, 2019 at 08:35:26AM -0400, Jeff Hostetler wrote:
>
>
> On 3/16/2019 6:47 AM, [email protected] wrote:
> > From: Torsten Bögershausen <[email protected]>
> >
> > Some compilers don't allow NULL to be passed for a va_list.
> > Use va_list instead.
> >
> > Signed-off-by: Torsten Bögershausen <[email protected]>
>
> Thanks for the fixup.
>
> For future reference, can you elaborate on which compiler
> and/or platform has the problem ?
>
> Jeff

It is on a Raspberry PI:
gcc (Raspbian 6.3.0-18+rpi1+deb9u1) 6.3.0 20170516

trace2/tr2_tgt_event.c:193:18: error: invalid operands to binary && (have ‘int’ 
and ‘va_list {aka __va_list}’)
  if (fmt && *fmt && ap) {
        ~~~~~~~~~~~ ^~

(And I couldn't find any hints that va_list and pointers can be mixed,
 and no hints that they can't either)

Reply via email to