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

Fix warnings. #64

Merged
merged 1 commit into from
Sep 6, 2024
Merged

Fix warnings. #64

merged 1 commit into from
Sep 6, 2024

Conversation

jeffdav
Copy link
Contributor

@jeffdav jeffdav commented Aug 28, 2024

This fixes the following two warnings:

/Users/jeffdav/src/jeffdav-PythonKit/PythonKit/NumpyConversion.swift:140:34: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
            buffPtr.baseAddress!.assign(from: ptr, count: scalarCount)
                                 ^
/Users/jeffdav/src/jeffdav-PythonKit/PythonKit/NumpyConversion.swift:140:34: note: use 'update(from:count:)' instead
            buffPtr.baseAddress!.assign(from: ptr, count: scalarCount)
                                 ^~~~~~
                                 update
/Users/jeffdav/src/jeffdav-PythonKit/Tests/PythonKitTests/PythonFunctionTests.swift:207:13: warning: initialization of immutable value 'testFunction' was never used; consider replacing with assignment to '_' or removing it
        let testFunction = PythonFunction { _ in
        ~~~~^~~~~~~~~~~~
        _

@jeffdav
Copy link
Contributor Author

jeffdav commented Sep 5, 2024

@compnerd Any concerns?

@compnerd compnerd merged commit 6fee761 into pvieito:master Sep 6, 2024
2 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