[fpc-pascal] Unexpected warning messages...
Martin Frb
lazarus at mfriebe.de
Sat Oct 17 23:01:24 CEST 2026
On 17/10/2026 22:45, Mattias Gaertner via fpc-pascal wrote:
>
> Of course it would be nice if the specialization can be compiled
> without hints and warnings.
Unless they depend on the gen param
E.g. dead code could be due to
if sizeof(G_PARAM) = 1 then
of course then such dead code may be "by design"
>> The filters (Lazarus 4.8) don't work well as filtering for "...never
>> used" in generics.collections.pas never works; they're always displayed.
>
> Hmm, I wonder what would be a good filter to hide such hints/warnings.
>
Depends.
In many cases the generic is from a unit outside the current package =>
the IDE could see that and know that unit wasn't just compiled.
(assuming it can detect all trickeries with PATH settings in all places,
and "uses" with a "in file" ....
If the generic is from the same package => well then it got compiled anyway
More information about the fpc-pascal
mailing list