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

Fixed a compilation warning in mlx_new_image.c file #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ismaelmehdid
Copy link

This pull request addresses a compilation warning in mlx_new_image.c related to the shm_att_pb function.
The warning indicated that the return value of the write function was being ignored : warn_unused_result.

Changes Made:

Previously, the code had a line where write(2, WARN_SHM_ATTACH, strlen(WARN_SHM_ATTACH)) was called without handling its return value.
Now the code properly handle the return value of the write function.
The modification ensures that the return value is returned by the shm_att_pb function.

@dimadem
Copy link

dimadem commented May 6, 2024

Thank you. I'm using your solution, in my case it worked.

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