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

gtk.cfg: Add more definitions for assert macros #5830

Merged
merged 2 commits into from
Jan 5, 2024
Merged

Conversation

ptomato
Copy link
Contributor

@ptomato ptomato commented Jan 4, 2024

In particular, the missing definition of g_assert_nonnull() can cause false positives because it's not recognized as assert(expr != NULL) by cppcheck.

@chrchr-github
Copy link
Collaborator

Thanks for contributing. Can you add a test in gtk.c?

--library=gtk was given twice and the file had an incorrect name.
@ptomato
Copy link
Contributor Author

ptomato commented Jan 4, 2024

Done, thanks for the suggestion!

@chrchr-github
Copy link
Collaborator

FYI there is this old ticket about assert() and noreturn: https://trac.cppcheck.net/ticket/8329

@danmar danmar merged commit 8ca93c9 into danmar:main Jan 5, 2024
64 checks passed
@ptomato ptomato deleted the g_assert branch January 5, 2024 23:20
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.

3 participants