[fpc-devel] Redefine FillChar() to use out parameter instead
Paul Ishenin
ip at kmiac.ru
Thu Nov 19 11:00:17 CET 2009
Graeme Geldenhuys wrote:
> As I stated in the other mailing list. It's not about a obsession to get
> hint & warning free code. It's about spoting REAL issues in code between
> all the crap the compiler currently spits out. If your project uses a
> lot of structure types, you can quickly sit with thousands of lines of
> compiler hints like this one. There is no easy way of spotting real hint
> compared to fake (useless) hints. And I definitely don't have the time
> to seek through my rather large (200k + LOC projects) projects hint
> output to try and figure out what is real and what is useless hints.
Then maybe the solution is to add someting like
{$uninitialized_arguments_check_for_functions off}
procedure FillChar(var ...)
begin
...
end;
{$uninitialized_arguments_check_for_functions on}
Compiler will add a flag for each var/const argument that they dont
require that checks.
Best regards,
Paul Ishenin.
More information about the fpc-devel
mailing list