Skip to content

fix: explicitly define function's output to boolean#15

Merged
skoef merged 1 commit intoskoef:masterfrom
ieth0:fix/bird2-function-void-check
Dec 14, 2023
Merged

fix: explicitly define function's output to boolean#15
skoef merged 1 commit intoskoef:masterfrom
ieth0:fix/bird2-function-void-check

Conversation

@ieth0
Copy link
Copy Markdown
Contributor

@ieth0 ieth0 commented Dec 8, 2023

bird2 complains about function's output if its not set:
/etc/bird.d/match_route.conf:4:14: Inferring function match_route return type from its return value: bool

explicitly defining it prevents unnecessary warning:
https://gitlab.nic.cz/labs/bird/-/blob/v2.14/filter/config.Y?ref_type=tags#L1020

@skoef
Copy link
Copy Markdown
Owner

skoef commented Dec 12, 2023

Thanks @ieth0 for this contribution! Could you update the syntax in the examples in README.md as well?

@ieth0 ieth0 force-pushed the fix/bird2-function-void-check branch from 34a4e4b to 358be14 Compare December 14, 2023 00:35
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@skoef skoef merged commit a40fbf5 into skoef:master Dec 14, 2023
@skoef
Copy link
Copy Markdown
Owner

skoef commented Dec 14, 2023

@ieth0 there were some linting issues and a test failed, but I'll fix that. Thanks again!

skoef added a commit that referenced this pull request Dec 14, 2023
@ieth0
Copy link
Copy Markdown
Contributor Author

ieth0 commented Dec 14, 2023

Thank you!

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