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

clang-tidy and g_ API conversions #317

Merged
merged 9 commits into from
Jul 5, 2024
Merged

clang-tidy and g_ API conversions #317

merged 9 commits into from
Jul 5, 2024

Conversation

neheb
Copy link
Contributor

@neheb neheb commented Jul 4, 2024

Simplifies the code

neheb added 9 commits July 4, 2024 14:41
Standard C99. { 0 } is somewhat interesting as some compilers warn about
uninitialized members, which is bogus.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Found with clang-analyzer-unix.Malloc

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Found with bugprone-assignment-in-if-condition

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Found with readability-redundant-casting

Signed-off-by: Rosen Penev <rosenp@gmail.com>
These should not fail. There are no null checks.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This just gets freed at the end after getting copied.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Found with -Wanalyzer-null-argument

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Now matches sun_path size.

Found with -Wanalyzer-out-of-bounds

Signed-off-by: Rosen Penev <rosenp@gmail.com>
@nhorman nhorman merged commit 282ce14 into Irqbalance:master Jul 5, 2024
10 checks 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