We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
package Test is type A is (B => 0, C => 1) with Size => 1; end Test;
rflx-test.ads:28:16: warning: "others" choice is redundant [-gnatwr] rflx-test.ads:28:16: warning: previous choices cover all values [-gnatwr] rflx-test.ads:46:16: warning: "others" choice is redundant [-gnatwr] rflx-test.ads:46:16: warning: previous choices cover all values [-gnatwr] compilation of rflx-test.ads failed
24 function Valid (Val : RFLX.Test.A_Base) return Boolean is 25 ((case Val is 26 when 0 | 1 => 27 True, 28 when others => 29 False));
40 function To_Actual (Val : RFLX.Test.A_Base) return RFLX.Test.A is 41 ((case Val is 42 when 0 => 43 B, 44 when 1 => 45 C, 46 when others => 47 Unreachable_Test_A))
The text was updated successfully, but these errors were encountered:
Prevent warning on redundant constructs in SPARK code
5b08bf5
Ref. #315
30f4626
0fdb783
treiher
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: