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: handle unused-result warning during compilation #71

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

Conversation

mvisca
Copy link

@mvisca mvisca commented Jan 23, 2025

As students of 42, when compiling our projects, we strive to maintain a clean output free of errors or warnings. In projects that use minilibx-linux, certain warnings may appear that are beyond our control, but it is still valuable to address them for clarity and presentation. For this reason, I made a small modification by adding the -Wno-unused-result flag to the Makefile.mk.

I understand that for the development and maintenance of this library, controlling unused variables is essential. However, as a library distribution used in 42 projects, these warnings may impact the perceived quality of both the library and the students' projects that rely on it. For this reason, I believe this small contribution could be considered helpful.

Thank you very much!

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.

1 participant