Skip to content
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

More code improvements based on static analysis #4258

Merged
merged 11 commits into from
Nov 24, 2023
Merged

Conversation

vlstill
Copy link
Contributor

@vlstill vlstill commented Nov 20, 2023

No description provided.

@vlstill vlstill self-assigned this Nov 20, 2023
@vlstill vlstill marked this pull request as ready for review November 23, 2023 12:22
@vlstill vlstill requested a review from fruffy November 23, 2023 12:22
@@ -2640,7 +2640,7 @@ void CollectAddOnMissTable::postorder(const IR::P4Table *t) {
::error(ErrorType::ERR_UNEXPECTED,
"%1%: add_on_miss property is defined, "
"but default_action not specificed for table %2%",
default_action, t->name);
add_on_miss, t->name);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this is guarded by if (use_add_on_miss && default_action == nullptr) so using default_action in the error makes no sense.

@vlstill vlstill merged commit 8f3199f into p4lang:main Nov 24, 2023
13 checks passed
@vlstill vlstill deleted the lint-2 branch November 24, 2023 07:53
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.

2 participants