Giter Site home page Giter Site logo

Comments (5)

simonjwright avatar simonjwright commented on July 26, 2024

Well, in spite of those dire warnings, the demo/ examples ran fine.

You could decorate type Exported_Procedure with with Size => Standard’Address_Size, but that looks quite GNAT-specific.

My attempt to concoct a demonstrator failed, even with your GPR and all the compilation switches!

from hac.

zertovitch avatar zertovitch commented on July 26, 2024

Thanks for the test!
Regarding the first GNAT warning, it is legitimate: the range is actually empty.

  subtype Compile_Warning is Compile_Diagnostic
    range Compile_Diagnostic'Succ (err_obsolete_hat_name) .. err_obsolete_hat_name;
    --  ^ Fake, just, currently, an empty range!

This will heal with the appearance of the first kind of HAC warning (funny linguistic situation BTW: warnings about warnings).
The second one is a GNAT bug, spotted on Zip-Ada as well.
The third batch could be solved Address_To_Access conversions (I think there is a standard Ada.* package for that).

from hac.

zertovitch avatar zertovitch commented on July 26, 2024

Regarding the Address issue (be it on GNAT's side or not), I have replaced the use of System.Address by an access : 18ada18 .
Does it prevent the warnings?

from hac.

simonjwright avatar simonjwright commented on July 26, 2024

Does it prevent the warnings?

Yes, and the demo/ examples run OK.

from hac.

zertovitch avatar zertovitch commented on July 26, 2024

Now with the appearance of the first HAC warning kind, the last GNAT 14.0.0 warning is the GNAT bug mentioned above.

from hac.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.