[fpc-pascal] FPC happily eats wrong parameters
Mattias Gaertner
nc-gaertnma at netcologne.de
Tue Sep 24 14:34:06 CEST 2013
On Tue, 24 Sep 2013 14:23:52 +0200
Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
>
> On 24 Sep 2013, at 14:17, Mattias Gaertner wrote:
>
> > When calling "fpc -d foo test.pas" there are two mistakes:
> > First the -d parameter is missing a value, which fpc silently ignores.
> > And second there are two files to compile. FPC ignores that too, gives
> > a hint, but compiles anyway.
> >
> > Design or bug?
>
> By design, FPC gives a warning (not a hint) when two file names are
> specified.
You are right, it is a warning.
Why not an error? In what case do you need to pass two files to the
compiler?
> Accepting an empty -d parameter sounds like a bug though.
ok
Mattias
More information about the fpc-pascal
mailing list