Skip to content

nat46-core: Eliminate unused variable compilation warning - #75

Merged
ayourtch merged 1 commit into
ayourtch:masterfrom
angus19:master
Jul 1, 2026
Merged

ayourtch merged 1 commit into
ayourtch:masterfrom
angus19:master

Conversation

@angus19

@angus19 angus19 commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

The variable icmph is declared as struct icmphdr *icmph; but is never initialized or used (except within the compile-time sizeof(*icmph) operator).

The variable `icmph` is declared as `struct icmphdr *icmph;` but is never
initialized or used (except within the compile-time `sizeof(*icmph)` operator).
@ayourtch
ayourtch requested a review from Copilot June 30, 2026 17:45
@ayourtch
ayourtch requested review from ayourtch and removed request for Copilot June 30, 2026 17:45
@ayourtch

Copy link
Copy Markdown
Owner

I’d probably keep the {} just for the aesthetic consistency with the other blocks - what do you think about it ?

(not a hard precondition, and you probably spend more time looking at this than me - so, I am happy to merge it as is if you prefer it ! :)

@angus19

angus19 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Technically this is my bad: I should have this resolved in the previous PR but not until coming across a cross compiling.
Please merge it and appreciate. :)

@ayourtch ayourtch left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

No prob, thanks a lot for looking at it ! (by the way - I wonder if we should start making the CI (now that there is some semblance of CI) a bit stricter ? so that it could catch the things like this beforehand ? I deliberately wanted to make it non-intrusive, but stuff like "unused variables" it can give some help with.

@ayourtch
ayourtch merged commit cc00074 into ayourtch:master Jul 1, 2026
1 check passed
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