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

build : fix compilation errors and warnigns when building with MSVC #275

Merged
merged 1 commit into from
Jun 24, 2023

Conversation

iboB
Copy link
Contributor

@iboB iboB commented Jun 21, 2023

In the spirit of this PR: ggerganov/llama.cpp#1889

This is a cosmetic change. No functionality is changed. Warnings and compilation errors are fixed (and some warnings ignored) leading to a successful build with MSVC on Windows. "possible loss of data" warnings were mostly ignored.

Note that two tests (test1 and test2) fail on Windows after this, but the failures are unrelated and will be addressed in separate issues

examples/common.cpp Show resolved Hide resolved
Comment on lines +256 to +257
m0[0] = 0-1ULL;
m1[0] = 0-1ULL;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What warning does this fix?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"unary minus applied to unsigned value, result is still unsigned"

@ggerganov ggerganov merged commit c1bb712 into ggerganov:master Jun 24, 2023
@iboB iboB deleted the msvc-win branch July 4, 2023 13:01
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.

None yet

3 participants