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

Fix GCC declaration-after-statement error #5

Merged
merged 1 commit into from
Jun 17, 2022

Conversation

alyssais
Copy link
Contributor

Since upgrading to Linux v5.18 in Nixpkgs, we've been seeing an
"ISO C90 forbids mixed declarations and code" error from GCC.

This patch fixes it by declaring name at the top of each function
where it is used.

Signed-off-by: Alyssa Ross hi@alyssa.is

Since upgrading to Linux v5.18 in Nixpkgs, we've been seeing an
"ISO C90 forbids mixed declarations and code" error from GCC.

This patch fixes it by declaring name at the top of each function
where it is used.

Signed-off-by: Alyssa Ross <hi@alyssa.is>
@jacobgkau jacobgkau requested a review from a team May 23, 2022 14:22
@linuxgnuru
Copy link

Tested with this and #6 thelio-r1-6 first with 5.17.5-76051705-generic kernel and with 5.18.4. No regression, sensors showed the fans and modules built fine.

@jackpot51 jackpot51 merged commit 6eb019a into pop-os:master Jun 17, 2022
@alyssais alyssais deleted the declaration-after-statement branch June 20, 2022 11:54
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.

None yet

3 participants