[fpc-devel] Apache header translation Patch
Jonas Maebe
jonas.maebe at elis.ugent.be
Sun Nov 11 20:34:08 CET 2007
On 11 Nov 2007, at 17:06, Inoussa OUEDRAOGO wrote:
> I manage to get a code snipet that produces the warning, I do not
> known how to suppress this
> warning. Here is the code ( I compile with this command fpc -vw C:
> \tmp\b.pas )
>
> <code>
> {$mode objfpc}{$H+}
> program test_var_args;
> type TFunc = function (argc: Integer; const argv: array of PChar):
> PChar; cdecl;
> begin
> end.
> </code>
You can't get rid of that warning, and it should actually even be
worded more strongly. It is simply not possible to access C-style
varargs parameters at the callee side in FPC (you may be able to hak
using pointers which will work on some platforms, but it will crash
and burn in most cases).
Jonas
More information about the fpc-devel
mailing list