On 10/17/2026 12:52 AM, Sven Barth via fpc-pascal wrote:
Gene Buckle via fpc-pascal <[email protected]> schrieb am Fr., 16. Okt. 2026, 16:42:

    I've started working with FPC again after a VERY long hiatus (like
    15+
    years!) and the application I'm working on uses TObjectCollection
    from
    the Generics.Collection unit.

    When compiling I get the following warnings from
    generics.dictionaries
    and I was wondering why that is happening - I'd have thought that
    "base"
    units would always compile cleanly. I know I can filter them out in
    Lazarus, but I would rather not if it can be avoided on the
    assumption
    that warnings are warnings for a *reason*. :)


The assumption that base units compile cleanly is not true. Normally you don't notice it however cause they're pre-compiled. Exceptions are inlined routines and generic specializations cause they're both processed inside the unit they're used in.

I don't understand why they're being compiled all the time - is this a Lazarus thing?  AFAIK, the only time an RTL unit should *ever* be recompiled is if the source changes.

The filters  (Lazarus 4.8) don't work well as filtering for "...never used" in generics.collections.pas never works; they're always displayed.


There isn't really something you can do and in this case they aren't problematic either. In the development version these messages have been reduced.

They're problematic for *me* by spamming the Messages window with junk I don't need to see which makes the things I NEED to see difficult to find.

g.

--
Proud owner of F-15C 80-0007
http://www.f15sim.com - The only one of its kind.
http://www.diy-cockpits.org/coll - Go Collimated or Go Home.

I'm not crazy, I'm plausibly off-nominal!

ScarletDME - The red hot Data Management Environment
A Multi-Value database for the masses, not the classes.
https://github.com/geneb/ScarletDME - Get it _today_!

_______________________________________________
fpc-pascal maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to