[Top][All Lists]

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

Re: gcc31 compile problem

From: Adam Fedor
Subject: Re: gcc31 compile problem
Date: Wed, 04 Dec 2002 20:30:49 -0700
User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.1) Gecko/20020905

I added this.

Pete French wrote:
Compiling 'gui' undder gcc31 gives me problems when PSOperators.h
includes DPSOperators.h - the error message complains that va_start
is used in a non varargs function in PSPrintf() - which is incorrect
in itself as the va_start is within DPSPrintf().

The problem is due to the static inlining of the iinner function which
causes problems when nested within the outer one. A simple fix is to
simply declare the function as 'static'. The optimiser should be able to
decide whether too inline it or not anyway (as far as I know).

reply via email to

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