Skip to content

Conversation

@tychofrei02
Copy link
Contributor

Added missing ARG_UNUSED.

This corresponds to following coding guideline:

There should be no unused parameters in functions

This PR is part of the enhancement issue #48002 which port the coding guideline fixes done by BUGSENG on the https://github.com/zephyrproject-rtos/zephyr/tree/v2.7-auditable-branch back to main

The commit in this PR is a subset of the original auditable-branch commit:
5b627ad

- added missing ARG_UNUSED

Signed-off-by: frei tycho <tfrei@baumer.com>
@kartben
Copy link
Contributor

kartben commented May 6, 2024

looks like commit message is slightly inaccurate?

@tychofrei02
Copy link
Contributor Author

looks like commit message is slightly inaccurate?

What do you mean, exactly? In the commit an argument is cast to void using the macro ARG_UNUSED.

@kartben
Copy link
Contributor

kartben commented May 6, 2024

looks like commit message is slightly inaccurate?

What do you mean, exactly? In the commit an argument is cast to void using the macro ARG_UNUSED.

oops, nevermind. Sorry, I thought ARG_UNUSED was expanding to something like __attribute__((unused)) hence why I commented about the commit message potentially being misleading, which it isn't, my bad!

@nashif nashif merged commit 045a11f into zephyrproject-rtos:main May 7, 2024
@tychofrei02 tychofrei02 deleted the coding_guideline_2_7_auditable_to_main_in_include/debug branch May 16, 2024 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants