Why is this an issue?

While past Delphi versions allowed a trailing comma in argument lists, more recent versions treat trailing commas as a parsing error and do not compile.

Having trailing commas in argument lists makes code non-portable between different versions of Delphi and may pose a problem during upgrades.

How to fix it

Remove the extraneous trailing comma:

Foo(1, 2, 3,);
Foo(1, 2, 3);