Skip to content

Gnat 2022 makes () for arrays obsolescent #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kevlar700 opened this issue Jan 3, 2023 · 1 comment
Open

Gnat 2022 makes () for arrays obsolescent #29

kevlar700 opened this issue Jan 3, 2023 · 1 comment

Comments

@kevlar700
Copy link

kevlar700 commented Jan 3, 2023

When building a project with -gnat2022 then warnings about array obsolescent syntax are generated.

Coupled with gnatwe warnings as errors in gprbuild then the build fails.

I'm not sure of the best method to fix this issue? Personally, I would prefer upgrading the syntax to square brackets but that might break compatibility promises (not sure if they cover just hardware compatibility with the light runtime or if it is also intended to support older language versions). I have removed gnatwe from sparknacl gpr file in my codebase for now.

Note: Square brackets might cause problems with your ada language server such as breaking code formatting due to seeing incorrect code unless on a relatively new version (newer than the one bundled with the released gnat studio continuous release).

@rod-chapman
Copy link
Owner

I'll take a look when I have a sec. I think it will be worth making the transition to the new syntax if and when Ada2022 becomes the default mode in GNAT...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants