-
Notifications
You must be signed in to change notification settings - Fork 322
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 -Werror=declaration-after-statement and add flag #3995
Conversation
986d972
to
d0803e8
Compare
Thanks for the fixes, i just have one nit, that the fixes and the flag change be two separate patches. Otherwise LGTM |
Will make git commands (blame, merge, revert, rebase, cherry-pick,...) much less likely to fail. Signed-off-by: Marc Herbert <[email protected]>
Do not add the option yet. Automate current (and unwritten?) coding guidelines. Let's not waste considerable time in code reviews discussing problems computers can catch automatically. Note this goes against CERT-C recommendations DCL00-C, DCL19-C and many others but it's the current policy so let's apply and automate it. Can be changed later. Signed-off-by: Marc Herbert <[email protected]>
Automate current (and unwritten?) coding guidelines. Let's not waste considerable time in code reviews discussing problems computers can catch automatically. Note this goes against CERT-C recommendations DCL00-C, DCL19-C and many others but it's the current policy so let's apply and automate it. Can be changed later. Signed-off-by: Marc Herbert <[email protected]>
3 commits for you sir! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks more bot info always a win 👍
@marc-hb can you check CI, this should not break UT (unless it break UT build) ? |
Downgrading to draft for now. |
Can one of the admins verify this patch? |
@marc-hb Over a year with no activity, keep open? |
The Linux kernel has moved to C99 (even higher actually but not relevant here), we should do the same. Closing |
Automate current (and unwritten?) coding guidelines. Let's not waste
considerable time in code reviews discussing problems computers can
catch automatically.
Note this goes against CERT-C recommendations DCL00-C, DCL19-C and many
others but it's the current policy so let's apply and automate it. Can
be changed later.
Signed-off-by: Marc Herbert [email protected]