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 for warning in svm test file #239

Merged

Conversation

pwisniewskimobica
Copy link
Contributor

fix for issue : #236

Copy link
Contributor

@alycm alycm left a comment

Choose a reason for hiding this comment

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

In general LGTM.

}
void testSVMMemoryAllocation()
{
{//
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
{//
{

Something committed accidentally?

@@ -4214,10 +4214,10 @@ void clSVMFree_stubForMemoryAllocation(cl_context context, void *svm_pointer,
int cmock_num_calls)
{
TEST_ASSERT_EQUAL_PTR(svm_pointer, testMemory);
delete svm_pointer;
delete (int*) svm_pointer;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
delete (int*) svm_pointer;
delete[] (int*) svm_pointer;

As testMemory was allocated with new[] should use delete[]. I realise that problem existed before this PR, but touching the line made me notice it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@alycm thanks for patient!
I just repaired.
Please take a look
regards

Copy link
Contributor

@MathiasMagnus MathiasMagnus left a comment

Choose a reason for hiding this comment

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

Ship it.

@bashbaug bashbaug merged commit 04626a3 into KhronosGroup:main Jul 11, 2023
56 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.

4 participants