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

common: fix warning #8036

Merged
merged 2 commits into from
Jun 20, 2024
Merged

common: fix warning #8036

merged 2 commits into from
Jun 20, 2024

Conversation

JohannesGaessler
Copy link
Collaborator

This PR fixes a warning in common/common.cpp. According to this the problem is that function pointers can in principle be null and the correct solution is to wrap the function pointer in a struct.

common/common.cpp Outdated Show resolved Hide resolved
@slaren slaren merged commit abd894a into ggerganov:master Jun 20, 2024
59 of 64 checks passed
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Jun 30, 2024
* common: fix warning

* Update common/common.cpp

Co-authored-by: slaren <[email protected]>

---------

Co-authored-by: slaren <[email protected]>
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