On 27 September 2010 10:26, Jim wrote: > FillByte(tag, SizeOf(tag), 0); //initialize var. > The compiler warning doesn't go away though.
I've had the same problem a few monts ago, and I hate compiler hints/warnings in my code. The issue is the var parameters, and the FPC developers already stated that they will not change the Fill*() functions parameters to being out parameters (some Windows OLE or COM thing). What I had to do was create my own wrapper function for Fill(), then inside that wrapper function I called FillChar or FillByte etc, and that call is wrapped by {$HINT OFF} and {$HINT ON} directives. A bit of a pain, but it worked, and I silenced the compiler warning. -- Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net:8080/fpgui/ _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal