This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: va_arg regression from 2.95.2 to 3.1


On Wed, Mar 27, 2002 at 09:25:44AM +0100, Schirmer, Hartmut wrote:
> Since
>         res = va_arg(ap,int16);
> will never be executed the compiler shouldn't give an error.

Possibly.  I'm unconvinced.

> Is there any other way to get varguments of unknown size
> through va_arg ?

(1) casting to "long".
(2) application specific ifdefs.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]