Subject: Re: /* CONSTCOND */ in
To: None <tech-userlevel@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-userlevel
Date: 01/02/2001 20:44:00
In article <20001221032329.233141FF90@thoreau.thistledown.com.au>,
Simon Burge <simonb@wasabisystems.com> wrote:
>Hi,
>
>Lint spits out warnings when va_arg is used, at least on alpha, arm32,
>m68k and mips.  i386 is clean.
>
>For m68k, adding a /*CONSTCOND*/ to the middle of the va_arg macro in
><m68k/stdarg.h> keeps lint quiet.  For alpha, arm32 and pmax, I needed
>to add /*LINTED*/ as these have problems like:
>
>	foo.c(75): warning: possible pointer alignment problem
>	foo.c(75): warning: pointer casts may be troublesome
>
>and there is no /*PTRCAST*/ or /*PTRALIGN*/ directives or similar.
>
>What to do?

cast to void * first.

christos