Skip to content

Eliminate unused variable warnings in panic and unreachable macros#1583

Merged
zhassan-aws merged 3 commits intomodel-checking:mainfrom
zhassan-aws:fix-panic
Aug 24, 2022
Merged

Eliminate unused variable warnings in panic and unreachable macros#1583
zhassan-aws merged 3 commits intomodel-checking:mainfrom
zhassan-aws:fix-panic

Conversation

@zhassan-aws
Copy link
Copy Markdown
Contributor

Description of changes:

Applying the same trick used in #1561 to eliminate spurious unused variable warnings for variables that are exclusively used as arguments in the panic or unreachable macros, both of which Kani provides an overridden version.

Resolved issues:

Resolves #1582

Call-outs:

Testing:

  • How is this change tested? Added one test

  • Is this a refactor change? No

Checklist

  • Each commit message has a non-empty body, explaining why the change was made
  • Methods or procedures are documented
  • Regression or unit tests are included, or existing tests cover the modified code
  • My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

@zhassan-aws zhassan-aws requested a review from a team as a code owner August 24, 2022 01:34
@zhassan-aws zhassan-aws merged commit 60053df into model-checking:main Aug 24, 2022
@zhassan-aws zhassan-aws deleted the fix-panic branch August 24, 2022 21:18
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

Successfully merging this pull request may close these issues.

Spurious ununused variable warning for variables used as panic arguments

2 participants