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

Avoid GCC warnings on unused functions #42

Merged
merged 3 commits into from
Jan 28, 2021
Merged

Conversation

encukou
Copy link
Owner

@encukou encukou commented Jan 26, 2021

Fixes: #40 (for GCC)

Making the functions inline would be better here, but inline is
not available in C90.

Includes tests to avoid future regressions.

Fixes: #40 (for GCC)

Making the functions `inline` would be better here, but `inline` is
not available in C90.

Includes tests to avoid future regressions :)
@encukou
Copy link
Owner Author

encukou commented Jan 26, 2021

@javaprog, could you take a look at this? I don't have a clang-built Python handy.

@javaprog
Copy link
Contributor

@javaprog, could you take a look at this? I don't have a clang-built Python handy.

Will try this in our environment with both GCC and Clang.

@javaprog
Copy link
Contributor

This works like a charme, thanks a lot!

@encukou encukou merged commit 4879a81 into master Jan 28, 2021
@encukou encukou deleted the avoid-unused-warnings branch January 28, 2021 21:18
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.

Avoid compiler warning about unused function
2 participants